Sourced from sanitize-html's changelog.
2.17.0 (2025-05-14)
- Add
preserveEscapedAttributes, allowing attributes on escaped disallowed tags to be retained. Thanks to Ben Elliot for this new option.2.16.0 (2025-04-16)
- Add
onOpenTagandonCloseTagevents to enable advanced filtering to hook into the parser. Thanks to Rimvydas Naktinis.2.15.0 (2025-03-19)
- Allow keeping tag content when discarding with exclusive filter by returning
"excludeTag". Thanks to rChaoz.
86efc06
Merge pull request #705
from apostrophecms/release-2.17.0c487e77
release 2.17.0da16903
Merge pull request #704
from apostrophecms/add-thanks-to-changelog0e5d881
Update CHANGELOG614e7df
Merge pull request #668
from benelliott/feature/preserve-escaped-attributes-28628cea
Update README.mdf07ce9d
README.md: Add warning on usage of
preserveEscapedAttributes27de3a8
Add test demonstrating that preserveEscapedAttributes doesn't affect
behaviou...3d2893e
Add documentation for preserveEscapedAttributes optionae1dc35
Add preserveEscapedAttributes option to allow attributes on
escaped disallo...