dom-to-string
Version:
Cross browser DOM to string converter.
20 lines (12 loc) • 478 B
Markdown
# dom-to-string
[](https://travis-ci.org/hemanth/dom-to-string) [](http://badge.fury.io/js/dom-to-string)
> Cross browser DOM to String converter.
## Installation
`npm install dom-to-string --save`
## Usage
```js
const dom2str = require('dom-to-string');
var p = document.createElement('p');
p.innerHTML = "hello";
dom2str(p); // '<p>hello</p>'
```