Escape HTML special characters (including `)
npm install html-es6cape



Escape HTML special characters (including ).
> Please note the pun in the package name! :zap:
This package is distributed via npm:
``
npm install html-es6cape
`javascript
const escape = require("html-es6cape");
var unescapedString = This is an evil unescaped string <"'&'">! #whoopwhoop;`
var escapedString = escape(unescapedString);
// "This is a nice escaped string <"'&'">! #whoopwhoop"
- or -
`javascript
import escape from "html-es6cape";
var unescapedString = This is an evil unescaped string <"'&'">! #whoopwhoop;`
var escapedString = escape(unescapedString);
// "This is a nice escaped string <"'&'">! #whoopwhoop"
- or -
`javascript
import escape from "html-es6cape";
var escapedString = escapeThis is an evil unescaped string <"'&'">! #whoopwhoop;``
// "This is a nice escaped string <"'&'">! #whoopwhoop"