element

Create's DOMElement from a string

npm install element
7 downloads in the last week
27 downloads in the last month

element

dependency status

browser support

Turn HTML into DOM elements x-browser.

var element = require("element")

element("<p>Hello</p><p>World</p>")
// => Hello World (as document fragment)

element("<p>Hello World</p>")
// => Hello World (as element)

Installation

npm install element

Contributors

  • TJ Holowaychuk
  • Shyltman
  • Raynos

MIT Licensed

npm loves you