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
2
Maintainers
1
Install size
6.76 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

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

github npm

Keywords

FAQs

Last updated on 13 Dec 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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc