1.0.3 • Published 8 years ago

yu-safe-html v1.0.3

Weekly downloads
1
License
ISC
Repository
-
Last release
8 years ago

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

Links

github npm

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago