diff --git a/js/components/breadcrumbs.js b/js/components/breadcrumbs.js index 6797d3d83..d2c00f410 100644 --- a/js/components/breadcrumbs.js +++ b/js/components/breadcrumbs.js @@ -104,8 +104,7 @@ $(function() { sIconSpec = ''; } - else if (oEntry['icon'].length > 0) - { + else if (oEntry['icon'].length > 0) { // Mind the empty "alt" attribute https://www.w3.org/WAI/tutorials/images/decorative/ sIconSpec = ''; } @@ -115,10 +114,10 @@ $(function() if (sTitle.length === 0) { sTitle = sLabel; } - sTitle = EncodeHtml(sTitle, false); - sLabel = EncodeHtml(sLabel, false); + sTitle = CombodoSanitizer.EscapeHtml(sTitle, false); + sLabel = CombodoSanitizer.EscapeHtml(sLabel, false); - if ((this.options.new_entry !== null) && (iEntry === aBreadCrumb.length - 1)) { + if ((this.options.new_entry !== null) && (iEntry === aBreadCrumb.length-1)) { // Last entry is the current page sBreadcrumbsItemHtml += ''+sIconSpec+''+sLabel+''; } else {