npm.io
0.1.1 • Published 11 years ago

tidy-html5

Licence
Version
0.1.1
Deps
0
Vulns
0
Weekly
0
Stars
27

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