Socket
Socket
Sign inDemoInstall

yu-safe-html

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    yu-safe-html

a simple plugin develop cli with babel


Version published
Weekly downloads
1
Maintainers
1
Install size
6.57 kB
Created
Weekly downloads
 

Readme

Source

Introduce

this script change the html which you accept from other unknown place into safe html

Quick to start

install:
npm install --save yu-safe-html
import:
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
github

see https://github.com/watanabeyu0709/yu-safe-html

npm

see https://www.npmjs.com/package/yu-safe-html

Keywords

FAQs

Last updated on 22 Nov 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc