owncast/web/components/common/HtmlComment/HtmlComment.tsx

4 lines
150 B
TypeScript

/* eslint-disable react/no-danger */
export const HtmlComment = ({ text }) => (
<div dangerouslySetInnerHTML={{ __html: `<!-- ${text} -->` }} />
);