1
0
Fork 0
forked from 0x2620/oxjs

move Ox.stripTags from String.js to HTML.js

This commit is contained in:
rolux 2012-06-18 19:11:17 +02:00
commit 996f41c06b
2 changed files with 9 additions and 9 deletions

View file

@ -507,4 +507,13 @@
return Ox.normalizeHTML(html);
};
/*@
Ox.stripTags <f> Strips HTML tags from a string
> Ox.stripTags('f<span>o</span>o')
'foo'
@*/
Ox.stripTags = function(string) {
return string.replace(/<.*?>/g, '');
};
}());