All Versions
Latest Version
Avg Release Cycle
26 days
Latest Release
51 days ago

Changelog History
Page 1

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

    January 26, 2021
    • โž• Additional fixes for iframe validation exploits. Prevent exploits based on browsers' tolerance of the use of "\" rather than "/" and the presence of whitespace at this point in the URL. Thanks to Ron Masas of Checkmarx for pointing out the issue and writing unit tests.
    • โšก๏ธ Updates README yarn add syntax. Thanks to Tagir Khadshiev for the contribution.
  • v2.3.1 Changes

    January 22, 2021
    • ๐Ÿ“œ Uses the standard WHATWG URL parser to stop IDNA (Internationalized Domain Name) attacks on the iframe hostname validator. Thanks to Ron Masas of Checkmarx for pointing out the issue and suggesting the use of the WHATWG parser.