Move files into tab structure

This commit is contained in:
Chi Vinh Le
2018-09-13 18:29:22 +02:00
parent 72f5af9f3b
commit db483849dd
109 changed files with 38 additions and 29 deletions
@@ -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;