1/**
2 * Convert a template string into HTML DOM nodes
3 * @param {String} str The template string
4 * @return {Node} The template HTML
5 */
6var stringToHTML = function (str) {
7 var parser = new DOMParser();
8 var doc = parser.parseFromString(str, 'text/html');
9 return doc.body;
10};
11