Skip to content

v3.1.2

Choose a tag to compare

@fb55 fb55 released this 03 Dec 11:30
· 2 commits to master since this release

Security

  • In default HTML rendering, render() now escapes text in <noscript>, and in raw-text elements such as <style> and <script> inside SVG or MathML where browsers parse it as markup (GHSA-q2fm-67v7-6h8w, #1784).
  • render() no longer overflows the stack (RangeError) on deeply nested documents (GHSA-w993-rw2g-cjqj, #1744).

Other changes

  • render() now self-closes empty <br> elements in foreign content (<br/>) even when selfClosingTags: false, instead of writing <br></br> (#1782).

Full Changelog: v3.1.1...v3.1.2