sanitize-html : Clean up user-submitted HTML, preserving whitelisted elements and whitelisted attributes on a per-element basis. You can installing sanitize-html npm packages, there are two ways to install this module locally and globaly. -g option is specified to global. Execute the below command.
$ sudo npm install sanitize-html $ sudo npm install -g sanitize-html
If want to update the sanitize-html package execute the command as below,
$ sudo npm update sanitize-html
Update package globally,
$ npm install -g sanitize-html
$ sudo git clone https://github.com/rektide/sanitize-html.git
$ sudo npm install -g ./sanitize-html
sanitize-html@1.16.1 /usr/lib/node_modules/sanitize-html
You can uninstall or remove this package from your node_modules run the command as below,
$ sudo npm uninstall sanitize-html
| Package Name | sanitize-html |
| Version | 1.16.1 |
| Description | Clean up user-submitted HTML, preserving whitelisted elements and whitelisted attributes on a per-element basis |
| Released Date | 2017-11-21T15:28:47.689Z |
| Published by | boutell |
| How to Learn | https://www.npmjs.com/package/sanitize-html/tutorial |