forked from 0x2620/oxjs
Ox.parseHTML -> Ox.sanitizeHTML, Ox.encodeHTML -> Ox.encodeHTMLEntities, Ox.decodeHTML -> Ox.decodeHTMLEntities
This commit is contained in:
parent
fef07dff6f
commit
c41afd2f5d
9 changed files with 28 additions and 26 deletions
|
|
@ -834,9 +834,9 @@ Ox.ListMap = 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;
|
||||
});
|
||||
|
|
@ -849,9 +849,9 @@ Ox.ListMap = 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;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue