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

@ -606,9 +606,9 @@ Ox.ListCalendar = function(options, self) {
function decodeValues(place) {
return Ox.map(place, function(value) {
return Ox.isString(value) ? Ox.decodeHTML(value)
return Ox.isString(value) ? Ox.decodeHTMLEntities(value)
: Ox.isArray(value) ? Ox.map(value, function(value) {
return Ox.decodeHTML(value);
return Ox.decodeHTMLEntities(value);
})
: value;
});
@ -632,9 +632,9 @@ Ox.ListCalendar = function(options, self) {
function encodeValues(place) {
return Ox.map(place, function(value) {
return Ox.isString(value) ? Ox.encodeHTML(value)
return Ox.isString(value) ? Ox.encodeHTMLEntities(value)
: Ox.isArray(value) ? Ox.map(value, function(value) {
return Ox.encodeHTML(value);
return Ox.encodeHTMLEntities(value);
})
: value;
});