I have a CouchDB view map function that generates an abstract of a stored HTML document (first x characters of text). Unfortunately I have no browser environmen
x
Updated @EpokK answer for html to email text version use-case
const htmltoText = (html: string) => { let text = html; text = text.replace(/\n/gi, ""); text = text.replace(/