1.0.7 • Published 8 years ago

dirty-markup v1.0.7

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

Dirty Markup

A node wrapper around dirtymarkup.com

Usage

dirtymarkup(options, callback)

Options: An object with at least the code property.

Callback: The successful api callback with a data parameter.

Returns: An object with status and code properties.

var dirtymarkup = require('dirty-markup')
var options = {
    code: '<div>Some markup</div>'
}
dirtymarkup(options, function(data) {
    console.log(data);
});

Options

code: Required, this is a string of the code getting cleaned.

indent: Optional, defaults to auto. Options are auto, block or none.

indent-size: Optional, defaults to 4. Options are 'tabs', 2, 4 or 8.

allow-proprietary-attributes: Optional, no default. Set to 1 to allow.

mode: Optional, defaults to html. Options include html or 'css'.

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago