const content = _.trim(txt.replace(/<[^>]+>/gim, '')); const stripHtml = html => (new DOMParser().parseFromString(html, 'text/html')).body.textContent || '';