sanitize-html
Advanced tools
Changelog
2.3.3 (2021-03-19):
allowedSchemes
and related options did not properly block schemes containing a hyphen, plus sign, period or digit, such as ms-calculator:
. Thanks to Lukas Euler for pointing out the issue.parser
option, especially decodeEntities: false
. See the documentation.Changelog
2.3.2 (2021-01-26):
yarn add
syntax. Thanks to Tagir Khadshiev for the contribution.Changelog
2.3.0 (2020-12-16):
htmlparser2
to new major version ^6.0.0
. Thanks to Bogdan Chadkin for the contribution.Changelog
2.2.0 (2020-12-02):
tel
to the default allowedSchemes
. Thanks to Arne Herbots for this contribution.Changelog
2.1.2 (2020-11-04):
Changelog
2.1.1 (2020-10-21):
allowedClasses
with an '*'
wildcard selector. Thanks to Clemens Damke for this contribution.Changelog
2.1.0 (2020-10-07):
sup
added to the default allowed tags list. Thanks to Julian Lam for the contribution.allowedTags
README documentation. Thanks to Marco Arduini for the contribution.Changelog
2.0.0 (2020-09-23):
nestingLimit
option added.is-plain-object
package with named export. Thanks to Bogdan Chadkin for the contribution.postcss
package and drop Node 11 and Node 13 support (enforced by postcss).allowedTags
array was updated significantly. This mostly added HTML tags to be more comprehensive by default. You should review your projects and consider the allowedTags
defaults if you are not already overriding them.