Escape Goat Versions Save

&🐐; Escape a string for use in HTML or the inverse

v4.0.0

3 years ago

Breaking

  • Require Node.js 12 810a0e3
  • This package is now pure ESM. Please read this.

https://github.com/sindresorhus/escape-goat/compare/v3.0.0...v4.0.0

v3.0.0

4 years ago

Breaking

  • Require Node.js 10 1bad680
  • Merge tag functions into regular functions (#16) c8585cf
    • Migrate:
-htmlEscapeTag`<a href="${url}"></a>`;
-htmlUnescapeTag`URL from HTML: ${url}`;
+htmlEscape`<a href="${url}"></a>`;
+htmlUnescape`URL from HTML: ${url}`;

https://github.com/sindresorhus/escape-goat/compare/v2.1.1...v3.0.0

v2.1.1

4 years ago
  • Handle &#039; in addition to &#39; (#14) f0d5024

https://github.com/sindresorhus/escape-goat/compare/v2.1.0...v2.1.1

v2.1.0

4 years ago
  • Accept non-strings in htmlEscapeTag and htmlUnescapeTag (#13) 633c0dc

https://github.com/sindresorhus/escape-goat/compare/v2.0.0...v2.1.0

v2.0.0

5 years ago

Breaking:

  • Require Node.js 8 (#12) 3404da9
  • Rename all the methods 3548594
    • escapehtmlEscape
    • unescapehtmlUnescape
    • escapeTaghtmlEscapeTag
    • unscapeTaghtmlUnescapeTag

Enhancements:

  • Add TypeScript definition (#12) 3404da9

https://github.com/sindresorhus/escape-goat/compare/v1.3.0...v2.0.0