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

5 lines
183 B
TypeScript
Raw Normal View History

/* eslint-disable react/no-danger */
export const HtmlComment = ({ text }) => (
<span style={{ display: 'none' }} dangerouslySetInnerHTML={{ __html: `\n\n<!-- ${text} -->` }} />
);