Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return source.alter( function( value ) {
try {
de&&ug( value.dom );
value.content = serialize( value.dom );
} catch( e ) {
value.error = e;
value.content = null;
}
} );
} ); // html_serialize()
post.more = (moreNodes.map(node => domutils.getOuterHTML(node))).join('');
}
get outerHTML() {
return getOuterHTML(this._dom)
}
const handler = new DomHandler((error, dom) => {
if (error) {
throw error;
}
else {
const node = find(dom, node => node.name === 'icon');
node.name = 'svg';
const { attribs } = node;
assign(attribs, {
xmlns: 'http://www.w3.org/2000/svg',
style,
});
delete attribs['{...$$props}'];
svg = getOuterHTML([node]);
}
});
const parser = new Parser(handler);
const handler = new DomHandler((error, dom)=>{
if (error) {
throw error
} else {
const node = find(dom, node=>node.name === 'icon')
node.name = 'svg'
const { attribs } = node
assign(attribs, {
xmlns: 'http://www.w3.org/2000/svg',
style,
})
delete attribs['{...$$props}']
svg = getOuterHTML([node])
}
})
const parser = new Parser(handler)