All Versions
102
Latest Version
Avg Release Cycle
38 days
Latest Release
336 days ago
Changelog History
Page 2
Changelog History
Page 2
-
v2.4.0 Changes
May 19, 2021- โ Added support for class names with wildcards in
allowedClasses
. Thanks to zhangbenber for the contribution.
- โ Added support for class names with wildcards in
-
v2.3.3 Changes
March 19, 2021- ๐ Security fix:
allowedSchemes
and related options did not properly block schemes containing a hyphen, plus sign, period or digit, such asms-calculator:
. Thanks to Lukas Euler for pointing out the issue. - โ Added a security note about the known risks associated with using the
parser
option, especiallydecodeEntities: false
. See the documentation.
- ๐ Security fix:
-
v2.3.2 Changes
January 26, 2021- โ Additional fixes for iframe validation exploits. Prevent exploits based on browsers' tolerance of the use of "\" rather than "/" and the presence of whitespace at this point in the URL. Thanks to Ron Masas of Checkmarx for pointing out the issue and writing unit tests.
- โก๏ธ Updates README
yarn add
syntax. Thanks to Tagir Khadshiev for the contribution.
-
v2.3.1 Changes
January 22, 2021- ๐ Uses the standard WHATWG URL parser to stop IDNA (Internationalized Domain Name) attacks on the iframe hostname validator. Thanks to Ron Masas of Checkmarx for pointing out the issue and suggesting the use of the WHATWG parser.
-
v2.3.0 Changes
December 16, 2020- โฌ๏ธ Upgrades
htmlparser2
to new major version^6.0.0
. Thanks to Bogdan Chadkin for the contribution.
- โฌ๏ธ Upgrades
-
v2.2.0 Changes
December 02, 2020- โ Adds a note to the README about Typescript support (or the lack-thereof).
- โ Adds
tel
to the defaultallowedSchemes
. Thanks to Arne Herbots for this contribution.
-
v2.1.2 Changes
November 04, 2020- ๐ Fixes typos and inconsistencies in the README. Thanks to Eric Lefevre-Ardant for this contribution.
-
v2.1.1 Changes
October 21, 2020- ๐ Fixes a bug when using
allowedClasses
with an'*'
wildcard selector. Thanks to Clemens Damke for this contribution. - โก๏ธ Updates mocha to 7.x to resolve security warnings.
- ๐ Fixes a bug when using
-
v2.1.0 Changes
October 07, 2020- 0๏ธโฃ
sup
added to the default allowed tags list. Thanks to Julian Lam for the contribution. - ๐ Updates default
allowedTags
README documentation. Thanks to Marco Arduini for the contribution.
- 0๏ธโฃ
-
v2.0.0 Changes
September 23, 2020nestingLimit
option added.- โก๏ธ Updates ESLint config package and fixes warnings.
- โฌ๏ธ Upgrade
is-plain-object
package with named export. Thanks to Bogdan Chadkin for the contribution. - โฌ๏ธ Upgrade
postcss
package and drop Node 11 and Node 13 support (enforced by postcss).
Backwards compatibility breaks:
- ๐ There is no build. You should no longer directly link to a sanitize-html file directly in the browser as it is using modern Javascript that is not fully supported by all major browsers (depending on your definition). You should now include sanitize-html in your project build for this purpose if you have one.
- On the server side, Node.js 10 or higher is required.
- โก๏ธ The default
allowedTags
array was updated significantly. This mostly added HTML tags to be more comprehensive by default. You should review your projects and consider theallowedTags
defaults if you are not already overriding them.