unpack-html
Unpack html source into elements
Example
Uses unpack-element
and fragment.Element
to
construct a DOM element from the source string and then
unpack that DOM element into an object containing elements
var html = source = "<div>hello <span id='thing'>world</span></div>" var elements = elementsroot; // that divelementsthing; // that span
Installation
npm install unpack-html
Contributors
- Raynos