This commit is contained in:
rolux 2012-05-27 13:42:55 +02:00
parent ccae6e4997
commit 707899b61c

View file

@ -347,6 +347,8 @@
'<a href="http://foo.com">foo</a>' '<a href="http://foo.com">foo</a>'
> Ox.sanitizeHTML('<a href="javascript:alert()">foo</a>') > Ox.sanitizeHTML('<a href="javascript:alert()">foo</a>')
'&lt;a href="javascript:alert()"&gt;foo' '&lt;a href="javascript:alert()"&gt;foo'
> Ox.sanitizeHTML('<a href="foo">foo</a>')
'&lt;a href="foo"&gt;foo'
> Ox.sanitizeHTML('<a href="/foo">foo</a>') > Ox.sanitizeHTML('<a href="/foo">foo</a>')
'<a href="/foo">foo</a>' '<a href="/foo">foo</a>'
> Ox.sanitizeHTML('[http://foo.com foo]') > Ox.sanitizeHTML('[http://foo.com foo]')