0.2.0 • Published 9 years ago

html-element-stringify v0.2.0

Weekly downloads
1,128
License
MIT
Repository
github
Last release
9 years ago

html-element-stringify

HTMLElement stringifier.

Installation

npm install html-element-stringify --save

Example

var htmlElementStringify = require('html-element-stringify')

var div = document.createElement('div')
div.id = 'test'
div.innerHTML = 'TEST'

htmlElementStringify(div)
//=> '<div id="test">TEST</div>'

License

MIT