Fix list view item encoding

This commit is contained in:
Bill Thornton 2021-11-10 14:06:53 -05:00
parent 38591e458e
commit a1077b3128

View File

@ -133,21 +133,28 @@ import ServerConnections from '../ServerConnections';
continue;
}
let elem;
if (i === 0) {
if (isLargeStyle) {
html += `<${largeTitleTagName} class="listItemBodyText">`;
elem = document.createElement(largeTitleTagName);
} else {
html += '<div class="listItemBodyText">';
elem = document.createElement('div');
}
} else {
html += '<div class="secondary listItemBodyText">';
elem = document.createElement('div');
elem.classList.add('secondary');
}
html += (textlines[i] || '&nbsp;');
if (i === 0 && isLargeStyle) {
html += `</${largeTitleTagName}>`;
elem.classList.add('listItemBodyText');
if (textlines[i]) {
elem.innerText = textlines[i];
} else {
html += '</div>';
elem.innerHTML = '&nbsp;';
}
html += elem.outerHTML;
}
return html;