custom function to strip html tags on javascript code example
Example: how to strip html tags in javascript
function stripHtml(html)
{
let tmp = document.createElement("DIV");
tmp.innerHTML = html;
return tmp.textContent || tmp.innerText || "";
}