html-element-stringify
v0.2.0
Published
HTMLElement stringifier
Downloads
1,186
Readme
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