Ox.sanitizeHTML: add test

This commit is contained in:
rolux 2012-06-22 10:29:09 +02:00
parent 0d2204ff19
commit e54be15936

View file

@ -470,6 +470,8 @@
'<b>foo</b>'
> Ox.sanitizeHTML('<b>foo</b></b>')
'<b>foo</b>'
> Ox.sanitizeHTML('&&amp;')
'&amp;&amp;'
@*/
Ox.sanitizeHTML = function(html, tags) {
var matches = [];