A NPM package that converts a file's entities from name and rendered to their respected numerical value. If a bad entity is found it will be deleted.
NPM:
npm i @epubknowledge/entityverteryarn:
yarn add @epubknowledge/entityverterInstall to NPM:
cd entityverter && npm i && npm linkIn the terminal:
evcli -i file.xhtml
If using this as a CLI and wanting advanced documentation it can be found at CLI documentation.
This can take two arguments:
data: The content going in that will be traversedresults: Wether or not you want to know what was changed which would change the return from string to an object.
const entityverter(data, results)If using this as a package and wanting advanced documentation it can be found a Package documentation.