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
This regular expression works:
text.replace(/<[^>]*>/g, '');