📅  最后修改于: 2022-03-11 15:02:08.557000             🧑  作者: Mango
// our input string to clean
const stringToClean = 'Some text with , including a rogue script def.';
const result = new Sanitizer().sanitize(stringToClean);
// Result: A DocumentFragment containing text nodes and a element, with a child element