dom-to-string

1.0.1 • Public • Published

dom-to-string

Build Status npm version

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>'

Readme

Keywords

Package Sidebar

Install

npm i dom-to-string

Weekly Downloads

13

Version

1.0.1

License

MIT

Last publish

Collaborators

  • hemanth