Encodes and decodes an HTML Entity.
Installation:
npm install --save @heppokofrontend/html-entity
Example:
import { encodeHTMLEntities, decodeHTMLEntities } from '@heppokofrontend/html-entity';
const string = 'hello world';
const htmlEntity = encodeHTMLEntities(string); // => hello world
console.log(decodeHTMLEntities(htmlEntity)); // > hello world
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
MIT