@heppokofrontend/html-entity
v0.1.1
Published
Encodes and decodes an HTML Entity.
Downloads
7
Maintainers
Readme
@heppokofrontend/html-entity
Encodes and decodes an HTML Entity.
Usage
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
Contributing
- 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
License
MIT