diff --git a/js/prototype/prototype.js b/js/prototype/prototype.js index bf2d3b3eab9..e00b2679260 100644 --- a/js/prototype/prototype.js +++ b/js/prototype/prototype.js @@ -621,7 +621,7 @@ Object.extend(String.prototype, (function() { } function stripTags() { - return this.replace(/<\w+(\s+("[^"]*"|'[^']*'|[^>])+)?(\/)?>|<\/\w+>/gi, ''); + return this.replace(/<\w+(\s+("[^"]*"|'[^']*'|[^>'"])+)?\s*("[^">]*|'[^'>])?(\/)?>|<\/\w+>/gi, ''); } function stripScripts() {