🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

tidy-html5

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tidy-html5

Tidy bad HTML markup

latest
Source
npmnpm
Version
0.1.1
Version published
Weekly downloads
178
-95.97%
Maintainers
1
Weekly downloads
 
Created
Source

tidy-html5

Clean and format HTML markup.

Usage

Use require("tidy-html5").tidy_html5(html_string, options).

Exemple

var tidy = require("tidy-html5").tidy_html5

var result = tidy("<h1>I <3 bad markup</h2>", {"indent-spaces": 4});

console.log(result);

List of options

Here is the full list of options.

How it works

This is just tidy-html5 compiled from C to javascript using emscripten.

Keywords

html

FAQs

Package last updated on 08 Dec 2014

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