unpack-html

Unpack html source into elements

unpack-html

Unpack html source into elements

var html = require("unpack-html")
    , source = "<div>hello <span id='thing'>world</span></div>"
 
var elements = html(source)
 
elements.root; // that div 
elements.thing; // that span 

npm install unpack-html

  • Raynos