hte

html-to-element

NPM Package - html-to-element

Showing:

Popularity

Downloads/wk

27

GitHub Stars

2

Maintenance

Last Commit

5yrs ago

Contributors

0

Package

Dependencies

0

Size (min+gzip)

0.4KB

License

MIT

Type Definitions

Tree-Shakeable

Yes?

Categories

Readme

HTML-to-Element

What does HTML-to-Element?

In one short sentence: "HTML-to-Element converts HTML from a string to a js dom element."

Install

npm install html-to-element -S

Import

import htmlToElement from 'html-to-element';

Examples:

  import htmlToElement from 'html-to-element';
  
  let element = htmlToElement(`<div id="example">
      <p>Example</p>
      <div style="width:200px">Click me!</div>
  </div>`);
  
  document.body.appendChild(element);

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100