Skip to content

v2.2.0

Choose a tag to compare

@fb55 fb55 released this 25 Jan 01:03
  • Add encodeNonAsciiHTML function 03b9143
    • Bit of a mouthful, but probably what most users expect; same as encodeHTML, but skips characters that are perfectly valid in ASCII and HTML.
  • Add escapeUTF8 function 1ea2418
    • Useful for escaping content in a space-saving manner, when charsets aren't an issue.
  • Use string codepoint methods when available 1e5aa22
    • Restores compatibility with Node < 4.
  • Add doc comments for most methods, deprecate some methods 8b1bc21

v2.1.0...v2.2.0