1
0
Fork 0
forked from 0x2620/oxjs

Ox.parseHTML -> Ox.sanitizeHTML, Ox.encodeHTML -> Ox.encodeHTMLEntities, Ox.decodeHTML -> Ox.decodeHTMLEntities

This commit is contained in:
rolux 2012-05-27 12:40:02 +02:00
commit c41afd2f5d
9 changed files with 28 additions and 26 deletions

View file

@ -75,10 +75,10 @@ Ox.load({Geo: {}, UI: {}, Unicode: {}}, function() {
})
.html(
'<span style="font-family: Monaco">'
+ Ox.encodeHTML(test.statement) + ' '
+ Ox.encodeHTMLEntities(test.statement) + ' '
+ (test.passed ? '=' : '!') + '=&gt; '
+ Ox.encodeHTML(test.expected)
+ (test.passed ? '' : ' ==&gt; ' + Ox.encodeHTML(test.actual))
+ Ox.encodeHTMLEntities(test.expected)
+ (test.passed ? '' : ' ==&gt; ' + Ox.encodeHTMLEntities(test.actual))
+ '</tt>'
)
.appendTo($test.$content);