There are a few use cases which aren't covered by the removeStyleAndScriptTags option:
- exclude other noise content, eg
<svg>
- exclude style, but leave scripts
- exclude scripts which don't have <script type="application/json">
Would you please consider adding a more generic option, removeTags? Ideally, it would also support attributes, but just tag names would be very useful anyway.
Usage:
const config = {
removeTags: ['style', 'link', 'script', 'svg']
}
Thanks
There are a few use cases which aren't covered by the
removeStyleAndScriptTagsoption:<svg>Would you please consider adding a more generic option,
removeTags? Ideally, it would also support attributes, but just tag names would be very useful anyway.Usage:
Thanks