move Ox.stripTags from String.js to HTML.js
This commit is contained in:
parent
1ab5c5eca1
commit
996f41c06b
2 changed files with 9 additions and 9 deletions
|
@ -507,4 +507,13 @@
|
||||||
return Ox.normalizeHTML(html);
|
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, '');
|
||||||
|
};
|
||||||
|
|
||||||
}());
|
}());
|
||||||
|
|
|
@ -415,15 +415,6 @@ Ox.startsWith = function(string, substring) {
|
||||||
return string.slice(0, substring.length) == substring;
|
return string.slice(0, substring.length) == substring;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*@
|
|
||||||
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, '');
|
|
||||||
};
|
|
||||||
|
|
||||||
/*@
|
/*@
|
||||||
Ox.toCamelCase <f> Takes a string with '-', '/' or '_', returns a camelCase string
|
Ox.toCamelCase <f> Takes a string with '-', '/' or '_', returns a camelCase string
|
||||||
> Ox.toCamelCase('foo-bar-baz')
|
> Ox.toCamelCase('foo-bar-baz')
|
||||||
|
|
Loading…
Reference in a new issue