yu-safe-html
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "yu-safe-html", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "a simple plugin develop cli with babel", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,26 +0,24 @@ | ||
## Introduce | ||
## Introduce | ||
this script change the html which you accept from other unknown place into safe html | ||
## Quick to start | ||
Using npm: | ||
```shell | ||
$ npm install --save yu-safe-html | ||
$ import safeHtml from 'yu-safe-html' | ||
``` | ||
install: | ||
`npm install --save yu-safe-html ` | ||
import: | ||
`import safeHtml from 'yu-safe-html' ` | ||
## Example | ||
```js | ||
document.getElementById('target-dom').innerHtml = safeHtml(data); | ||
``` | ||
document.getElementById('target-dom').innerHtml = safeHtml(data); | ||
## JSDoc | ||
```jsdoc | ||
* @returns {object} templateData - accept html form other unknown place | ||
* @returns {object} templateData - safe html | ||
``` | ||
## Links | ||
##### github | ||
see https://github.com/watanabeyu0709/yu-safe-html | ||
##### npm | ||
see https://www.npmjs.com/package/yu-safe-html | ||
[![github](http://p0kpwl4c8.bkt.clouddn.com/icon/github_c.png!icon_sm "https://github.com/watanabeyu0709/yyu-safe-html")](https://github.com/watanabeyu0709/yu-safe-html) | ||
[![npm](http://p0kpwl4c8.bkt.clouddn.com/icon/npm_c.png!icon_sm "https://www.npmjs.com/package/yu-safe-html")](https://www.npmjs.com/package/yu-safe-html) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6927
25