From 996f41c06b8117a9816fae40da0bc9fb1ce594c5 Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 18 Jun 2012 19:11:17 +0200 Subject: [PATCH] move Ox.stripTags from String.js to HTML.js --- source/Ox/js/HTML.js | 9 +++++++++ source/Ox/js/String.js | 9 --------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/source/Ox/js/HTML.js b/source/Ox/js/HTML.js index e7e850fe..bf73b6a7 100644 --- a/source/Ox/js/HTML.js +++ b/source/Ox/js/HTML.js @@ -507,4 +507,13 @@ return Ox.normalizeHTML(html); }; + /*@ + Ox.stripTags Strips HTML tags from a string + > Ox.stripTags('foo') + 'foo' + @*/ + Ox.stripTags = function(string) { + return string.replace(/<.*?>/g, ''); + }; + }()); diff --git a/source/Ox/js/String.js b/source/Ox/js/String.js index 7b5a0d08..47154e50 100644 --- a/source/Ox/js/String.js +++ b/source/Ox/js/String.js @@ -415,15 +415,6 @@ Ox.startsWith = function(string, substring) { return string.slice(0, substring.length) == substring; }; -/*@ -Ox.stripTags Strips HTML tags from a string - > Ox.stripTags('foo') - 'foo' -@*/ -Ox.stripTags = function(string) { - return string.replace(/<.*?>/g, ''); -}; - /*@ Ox.toCamelCase Takes a string with '-', '/' or '_', returns a camelCase string > Ox.toCamelCase('foo-bar-baz')