You can insert your own custom filtering, but make sure you compose your filtering function with [safeTags] or [safeTagsCustom]
Really this should say:
You can insert your own custom filtering, but make sure you compose your filtering function with (safeTags . clearTags) or (safeTagsCustom . clearTagsCustom)
The problem is, without applying clearTags first, the input may not be sanitized:
From the documentation:
You can insert your own custom filtering, but make sure you compose your filtering function with [safeTags] or [safeTagsCustom]
Really this should say:
You can insert your own custom filtering, but make sure you compose your filtering function with (safeTags . clearTags) or (safeTagsCustom . clearTagsCustom)
The problem is, without applying
clearTags
first, the input may not be sanitized:This isn't an issue with
sanitizeXSS
because it composessafeTags
withclearTags
.I'm happy to make a pull request to fix this.