diff --git a/js/breadcrumb.js b/js/breadcrumb.js
index e8fc88a6f7..ab0941d869 100644
--- a/js/breadcrumb.js
+++ b/js/breadcrumb.js
@@ -59,24 +59,25 @@ $(function()
var oEntry = aBreadCrumb[iEntry];
if (oEntry['label'].length > 0)
{
- var sIconSpec = '';
- if (oEntry['icon'].length > 0)
- {
- sIconSpec = '';
- }
- var sTitle = oEntry['description'];
+ var sIconSpec = '';
+ if (oEntry['icon'].length > 0) {
+ sIconSpec = '
';
+ }
+
+ var sTitle = oEntry['description'],
+ sLabel = oEntry['label'];
if (sTitle.length == 0) {
sTitle = oEntry['label'];
}
- if ((this.options.new_entry !== null) && (iEntry == aBreadCrumb.length - 1))
- {
+ sTitle = SanitizeHtml(sTitle);
+ sLabel = SanitizeHtml(sLabel);
+
+ if ((this.options.new_entry !== null) && (iEntry == aBreadCrumb.length-1)) {
// Last entry is the current page
- sBreadCrumbHtml += '