tidy-html5

Tidy bad HTML markup

Stats

StarsIssuesVersionUpdatedCreatedSize
tidy-html5
0.1.17 years ago7 years agoMinified + gzip package size for tidy-html5 in KB

Readme

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.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.