rows="15"></textarea>`;
    document.getElementById('editbox').value = itmstr;
    contentsDiv.scrollTop = 0;
}

function renderPage(item, useHtml) {
    let tot = "";
    let nodecount = 0;
    let wordcount = 0;
    if(useHtml)
    {
        tot += `<button class="unselectable" onclick="return editElem()" style="float:right;">Edit Item</button>`;
    }
    if(typeof item === 'string' && !(item instanceof String))
    {
        if (useHtml) {
            tot += `${formatHtml(item)}`;
     