javascript html string to plain text code example Example: javascript html string to plain text myString.replace(/<[^>]*>?/gm, '');