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

5 lines
150 B
TypeScript
Raw Normal View History

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