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

a simple plugin develop cli with babel


Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 06 Dec 2017

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc