Commit ef5a76f6 authored by Phil Hughes's avatar Phil Hughes Committed by Jacob Schatz

Fixed rendering of HTML strings

parent 86d59657
...@@ -503,7 +503,13 @@ ...@@ -503,7 +503,13 @@
var ul = document.createElement('ul'); var ul = document.createElement('ul');
for (var i = 0; i < html.length; i++) { for (var i = 0; i < html.length; i++) {
ul.appendChild(html[i]); var el = html[i];
if (typeof el === 'string') {
ul.innerHTML += el;
} else {
ul.appendChild(el);
}
} }
return ul; return ul;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment