Closed alex-rantos closed 2 years ago
Fixes issue #506
Fixes regression caused by https://github.com/apostrophecms/sanitize-html/pull/395 in which addedText was never reseted to false after the ontext function was called for that tag.
addedText
ontext
Solution: reset addedText boolean to false in the onclosetag function.
Thanks for review @abea ! Added a changelog entry - feel free to change the wording if needed.
Fixes issue #506
Fixes regression caused by https://github.com/apostrophecms/sanitize-html/pull/395 in which
addedText
was never reseted to false after theontext
function was called for that tag.Solution: reset
addedText
boolean to false in the onclosetag function.