{"version":3,"file":"sanitizeHtml-D-AMLVrB-chunk.js","sources":["../../../src/utils/sanitizeHtml.ts"],"sourcesContent":["import DOMPurify from \"dompurify\";\nimport { getDecodedHtml } from \"utils/getDecodedHtml\";\n\n/**\n * Uses DOMPurify.santize and getDecodedHtml to clean up html string\n * @param {string} html The html that needs to be sanitized\n * @returns Santized html\n */\nexport const sanitizeHtml = (html: string | undefined): string => {\n\tif (html) {\n\t\treturn DOMPurify.sanitize(getDecodedHtml(html));\n\t} else {\n\t\treturn \"\";\n\t}\n};\n"],"names":["sanitizeHtml","html","DOMPurify","getDecodedHtml"],"mappings":"yGAQa,MAAAA,EAAgBC,GACxBA,EACIC,EAAU,SAASC,EAAeF,CAAI,CAAC,EAEvC"}