diff --git a/source/Ox.UI/js/Calendar/Ox.ListCalendar.js b/source/Ox.UI/js/Calendar/Ox.ListCalendar.js
index 59da08b4..892be08a 100644
--- a/source/Ox.UI/js/Calendar/Ox.ListCalendar.js
+++ b/source/Ox.UI/js/Calendar/Ox.ListCalendar.js
@@ -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;
});
diff --git a/source/Ox.UI/js/Code/Ox.DocPage.js b/source/Ox.UI/js/Code/Ox.DocPage.js
index 45627ea2..401571d1 100644
--- a/source/Ox.UI/js/Code/Ox.DocPage.js
+++ b/source/Ox.UI/js/Code/Ox.DocPage.js
@@ -88,7 +88,7 @@ Ox.DocPage = function(options, self) {
'' + (name || item.name) + ' '
+ '<' + item.types.join('>
or <') + '>
'
+ (item['default'] ? '(default: ' + item['default'] + '
) ' : '')
- + Ox.parseHTML(item.summary)
+ + Ox.sanitizeHTML(item.summary)
)
];
[
@@ -105,7 +105,7 @@ Ox.DocPage = function(options, self) {
marginTop: (level ? 0 : 8) + 'px',
marginLeft: (level * 32) + 'px'
})
- .html(Ox.parseHTML(item.description))
+ .html(Ox.sanitizeHTML(item.description))
);
} else {
$elements.push($('
> '
- + Ox.encodeHTML(example.statement)
+ + Ox.encodeHTMLEntities(example.statement)
.replace(/ /g, ' ')
.replace(/\n/g, '
\n ')
+ '
'
@@ -170,7 +170,7 @@ Ox.DocPage = function(options, self) {
.addClass(className)
.css({marginLeft: (level * 32 + 16) + 'px'})
.html(
- '' + Ox.encodeHTML(example.result) + '
'
+ '' + Ox.encodeHTMLEntities(example.result) + '
'
)
)
});
diff --git a/source/Ox.UI/js/Code/Ox.SyntaxHighlighter.js b/source/Ox.UI/js/Code/Ox.SyntaxHighlighter.js
index 5a69ce20..569ce797 100644
--- a/source/Ox.UI/js/Code/Ox.SyntaxHighlighter.js
+++ b/source/Ox.UI/js/Code/Ox.SyntaxHighlighter.js
@@ -71,7 +71,7 @@ Ox.SyntaxHighlighter = function(options, self) {
}
}
source += '' +
- Ox.encodeHTML(token.value)
+ Ox.encodeHTMLEntities(token.value)
.replace(/ /g, whitespace)
.replace(/\t/g, tab)
.replace(/\n/g, linebreak) + '';
diff --git a/source/Ox.UI/js/Form/Ox.Editable.js b/source/Ox.UI/js/Form/Ox.Editable.js
index da294447..07656d0a 100644
--- a/source/Ox.UI/js/Form/Ox.Editable.js
+++ b/source/Ox.UI/js/Form/Ox.Editable.js
@@ -155,7 +155,7 @@ Ox.Editable = function(options, self) {
}
function formatInputValue() {
- return Ox.decodeHTML(
+ return Ox.decodeHTMLEntities(
self.options.type == 'input'
? self.options.value
: self.options.value.replace(/type
of the item is
"function"
.
description