sanitize-html v2.0.0 Release Notes

Release Date: 2020-09-23 // over 3 years ago
    • nestingLimit 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 the allowedTags defaults if you are not already overriding them.