HTML Entity Converter
npm i hecon
CDN Links:
ES6
import hecon from 'hecon';
commonjs
const hecon = require('hecon');
console.log(hecon.encode('< Hello />'));
output:
< Hello />
console.log(hecon.encode('< Hello />', true));
output:
< Hello />
console.log(hecon.decode('< Hello />'));
console.log(hecon.decode('< Hello />'));
output:
< Hello />