sanitize-html v1.18.0 Release Notes
-
- 0️⃣ The new
allowedSchemesAppliedToAttributes
option. This determines which attributes are validated as URLs, replacing the old hardcoded list ofsrc
andhref
only. The default list now includescite
. Thanks to ml-dublin for this contribution. - 🔧 It is now easy to configure a specific list of allowed values for an attribute. When configuring
allowedAttributes
, rather than listing an attribute name, simply list an object with an attributename
property and an allowedvalues
array property. You can also addmultiple: true
to allow multiple space-separated allowed values in the attribute, otherwise the attribute must match one and only one of the allowed values. Thanks again to ml-dublin for this contribution. - 🛠 Fixed a bug in the npm test procedure.
- 0️⃣ The new