tidy-html5

0.1.1 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.1
    3,643
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.1
    3,643
  • 0.1.0
    0

Package Sidebar

Install

npm i tidy-html5

Weekly Downloads

3,643

Version

0.1.1

License

none

Last publish

Collaborators

  • lovasoa