mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 19:54:39 +00:00
please God help
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import DOMPurify from 'dompurify';
|
||||
|
||||
export default function stringToHTML(str, styles = false) {
|
||||
export default function stringToHTML(str: string, styles = false) {
|
||||
var parser = new DOMParser();
|
||||
str = DOMPurify.sanitize(str, { ADD_ATTR: ['onclick'] });
|
||||
var doc = parser.parseFromString(str, 'text/html');
|
||||
|
||||
Reference in New Issue
Block a user