Javascript: Strip Html

Date: 2019-01-16
const stripHtml = html => {
    const tmp = document.createElement('div');
    tmp.innerHTML = `${html}`;
    return tmp.textContent || tmp.innerText || '';
};
17790cookie-checkJavascript: Strip Html