diff --git a/source/Ox/js/HTML.js b/source/Ox/js/HTML.js index 5db1462e..0dbb2498 100644 --- a/source/Ox/js/HTML.js +++ b/source/Ox/js/HTML.js @@ -29,7 +29,7 @@ replace = { a: [ [ - /]*?href="((\/|https?:\/\/|mailto:).+?)".*?>/gi, + /]*?href="((\/|https?:\/\/|mailto:).*?)".*?>/gi, '', ], [ @@ -482,6 +482,8 @@ '<a href="foo">foo' > Ox.sanitizeHTML('foo') 'foo' + > Ox.sanitizeHTML('foo') + 'foo' > Ox.sanitizeHTML('[http://foo.com foo]') 'foo' > Ox.sanitizeHTML('foo')