// NB: This function can still return unsafe HTML export const unescapeHTML = (html) => { const wrapper = document.createElement("div"); wrapper.innerHTML = html.replace(//g, "\n").replace(/<\/p>

/g, "\n\n").replace(/<[^>]*>/g, ""); return wrapper.textContent; };