Socket
Book a DemoInstallSign in
Socket

html-purify-styles

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-purify-styles

html string style attributes will be removed , moved to style tag return with same string

1.0.4
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

html-purify-styles

Used for replace the HTML style attributes from given string.

It will give new string with style will be moved to last given string.

The styles will be converted as inline <style> tag.

It supports run from npm javascript, es6 supported javascript, Pure javascript support also there..

#Exmaple


var htmlString = "<div class='flet' style='display:none'> <span style='margin-left:10px'> testing </span> </div>"
purifyHtmlStyles = new PurifyHtmlStyles( htmlString );
htmlString = purifyHtmlStyles.run();

console.log( htmlString );

Keywords

purify

FAQs

Package last updated on 02 Sep 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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.