A simple String method to convert a string into DOM nodes
var code = '<p>A link to <a href="http://www.mootools.net">Mootools.net</a></p>'.toDOM(); // Return a NodeList with the DOM nodes , code is the <p> alert(code.getElement('a').get('href')); // alert "http://www.mootools.net" code.inject(document.body); // Inject the nodes into the body element
A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.
Found a bug in this plugin? Please report it this repository's Github Issues.blog comments powered by Disqus