1.0.1 • Published 7 years ago
dom-to-string v1.0.1
dom-to-string
Cross browser DOM to String converter.
Installation
npm install dom-to-string --save
Usage
const dom2str = require('dom-to-string');
var p = document.createElement('p');
p.innerHTML = "hello";
dom2str(p); // '<p>hello</p>'