element

Create's DOMElement from a string

element

Turn HTML into DOM elements x-browser.

var element = require("element")
 
element("<p>Hello</p><p>World</p>")[0]
// => Hello 
 
element("<p>Hello</p><p>World</p>")[1]
// => World 
 

npm install element

  • TJ Holowaychuk
  • Shyltman
  • Raynos