yu-safe-html
v1.0.3
Published
a simple plugin develop cli with babel
Downloads
1
Readme
Introduce
this script change the html which you accept from other unknown place into safe html
Quick to start
Using npm:
$ npm install --save yu-safe-html
$ import safeHtml from 'yu-safe-html'
Example
document.getElementById('target-dom').innerHtml = safeHtml(data);
JSDoc
* @returns {object} templateData - accept html form other unknown place
* @returns {object} templateData - safe html