Socket
Socket
Sign inDemoInstall

yu-safe-html

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yu-safe-html - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

package.json
{
"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)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc