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
Converter HTML to plain text like Gmail:
html = html.replace(/