- Add 'u' tag to accepted whitelist.
- Filter works properly with self-closing tags
- Added
transformText
option allowing to mangle or fork content of text nodes
- Added
abbr
tag name to defaults
- Added
mark
tag name to defaults
- Fix encoding issues in text nodes, which would become decoded and re-encoded for no reason
- Instead of throwing an exception, discards unclosed HTML tags at the end of the input stream
- Attributes without a value are preserved as-is
- Attributes without a value, such as
<button disabled></button>
are translated into their better compatible counterparts<button disabled="disabled"></button>
- Moved
assign()
intoassignment
npm module
- Added
title
, andaria-label
to thea
attribute whitelist - Added
title
,aria-label
, andalt
to theimg
attribute whitelist
- Sanitizer options are now always based off of defaults
- Added
strict
parameter to revert to1.0.0
behavior - Removed
iframe
from defaultallowedTags
collection - Allow relative URLs such as
images/deep.png
in attributes - Significantly sped up tag-intensive HTML parsing
- Initial Public Release