All Versions
102
Latest Version
Avg Release Cycle
38 days
Latest Release
1333 days ago

Changelog History
Page 1

  • v2.7.3 Changes

    October 24, 2022
    • ๐Ÿ“š If allowedTags is falsy but not exactly false, then do not assume that all tags are allowed. Rather, allow no tags in this case, to be on the safe side. This matches the existing documentation and fixes issue #176. Thanks to Kedar Chandrayan for the fix.
  • v2.7.2 Changes

    September 15, 2022
    • ๐Ÿ›  Closing tags must agree with opening tags. This fixes issue #549, in which closing tags not associated with any permitted opening tag could be passed through. No known exploit exists, but it's better not to permit this. Thanks to Kedar Chandrayan for the report and the fix.
  • v2.7.1 Changes

    July 20, 2022
    • ๐Ÿ‘ Protocol-relative URLs are properly supported for script tags. Thanks to paweljq.
    • ๐Ÿ”’ A denial-of-service vulnerability has been fixed by replacing global regular expression replacement logic for comment removal with a new implementation. Thanks to Nariyoshi Chida of NTT Security Japan for pointing out the issue.
  • v2.7.0 Changes

    February 04, 2022
    • ๐Ÿ‘ Allows a more sensible set of default attributes on <img /> tags. Thanks to Zade Viggers.
  • v2.6.1 Changes

    December 08, 2021
    • ๐Ÿ›  Fixes style filtering to retain !important when used.
    • ๐Ÿ›  Fixed trailing text bug on transformTags options that was reported on issue #506. Thanks to Alex Rantos.
  • v2.6.0 Changes

    November 23, 2021
    • ๐Ÿ‘Œ Support for regular expressions in the allowedClasses option. Thanks to Alex Rantos.
  • v2.5.3 Changes

    November 02, 2021
    • ๐Ÿ›  Fixed bug introduced by klona 2.0.5, by removing klona entirely.
  • v2.5.2 Changes

    October 13, 2021
    • Nullish HTML input now returns an empty string. Nullish value may be explicit null, undefined or implicit undefined when value is not provided. Thanks to Artem Kostiuk for the contribution.
    • Documented that all text content is escaped. Thanks to Siddharth Singh.
  • v2.5.1 Changes

    September 14, 2021
    • ๐Ÿ”’ The allowedScriptHostnames and allowedScriptDomains options now implicitly purge the inline content of all script tags, not just those with src attributes. This behavior was already strongly implied by the fact that they purged it in the case where a src attribute was actually present, and is necessary for the feature to provide any real security. Thanks to Grigorii Duca for pointing out the issue.
  • v2.5.0 Changes

    September 08, 2021
    • ๐Ÿ†• New allowedScriptHostnames option, it enables you to specify which hostnames are allowed in a script tag.
    • ๐Ÿ†• New allowedScriptDomains option, it enables you to specify which domains are allowed in a script tag. Thank you to Yorick Girard for this and the allowedScriptHostnames contribution.
    • โšก๏ธ Updates whitelist to allowlist.