sanitize-html
Advanced tools
Changelog
2.7.2 (2022-09-15)
Changelog
2.7.1 (2022-07-20)
Changelog
2.7.0 (2022-02-04)
<img />
tags. Thanks to Zade Viggers.Changelog
2.6.1 (2021-12-08)
!important
when used.transformTags
options that was reported on issue #506. Thanks to Alex Rantos.Changelog
2.6.0 (2021-11-23)
allowedClasses
option. Thanks to Alex Rantos.Changelog
2.5.2 (2021-10-13):
null
, undefined
or implicit undefined
when value is not provided. Thanks to Artem Kostiuk for the contribution.Changelog
2.5.1 (2021-09-14):
allowedScriptHostnames
and allowedScriptDomains
options now implicitly purge the inline content of all script tags, not just those with src
attributes. This behavior was already strongly implied by the fact that they purged it in the case where a src
attribute was actually present, and is necessary for the feature to provide any real security. Thanks to Grigorii Duca for pointing out the issue.Changelog
2.5.0 (2021-09-08):
allowedScriptHostnames
option, it enables you to specify which hostnames are allowed in a script tag.allowedScriptDomains
option, it enables you to specify which domains are allowed in a script tag. Thank you to Yorick Girard for this and the allowedScriptHostnames
contribution.Changelog
2.4.0 (2021-05-19):
allowedClasses
. Thanks to zhangbenber for the contribution.