All Versions
100
Latest Version
Avg Release Cycle
36 days
Latest Release
71 days ago

Changelog History
Page 1

  • 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.
  • v2.4.0 Changes

    May 19, 2021
    • โž• Added support for class names with wildcards in allowedClasses. Thanks to zhangbenber for the contribution.
  • v2.3.3 Changes

    March 19, 2021
    • ๐Ÿ”’ Security fix: allowedSchemes and related options did not properly block schemes containing a hyphen, plus sign, period or digit, such as ms-calculator:. Thanks to Lukas Euler for pointing out the issue.
    • โž• Added a security note about the known risks associated with using the parser option, especially decodeEntities: false. See the documentation.