mirror of
https://github.com/wassname/talk.git
synced 2026-08-11 11:27:10 +08:00
Move files into tab structure
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import dompurify from "dompurify";
|
||||
import React, { StatelessComponent } from "react";
|
||||
|
||||
import styles from "./HTMLContent.css";
|
||||
|
||||
interface HTMLContentProps {
|
||||
children: string;
|
||||
}
|
||||
|
||||
const HTMLContent: StatelessComponent<HTMLContentProps> = ({ children }) => (
|
||||
<div
|
||||
className={styles.root}
|
||||
dangerouslySetInnerHTML={{ __html: dompurify.sanitize(children) }}
|
||||
/>
|
||||
);
|
||||
|
||||
export default HTMLContent;
|
||||
Reference in New Issue
Block a user