We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1e14fc commit ee05132Copy full SHA for ee05132
src/prototype/lang/string.js
@@ -288,7 +288,7 @@ Object.extend(String.prototype, (function(){
288
* // -> 'a link'
289
**/
290
function stripTags(){
291
- return this.replace(/<\w+(\s+("[^"]*"|'[^']*'|[^>])+)?(\/)?>|<\/\w+>/gi, '');
+ return this.replace(/<\w+(\s+("[^"]*"|'[^']*'|[^>'"])+)?\s*("[^">]*|'[^'>])?(\/)?>|<\/\w+>/gi, '');
292
}
293
294
/**
0 commit comments