Fixed rendering of HTML strings
This commit is contained in:
parent
86d59657fc
commit
ef5a76f68a
1 changed files with 7 additions and 1 deletions
|
@ -503,7 +503,13 @@
|
|||
var ul = document.createElement('ul');
|
||||
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue