View | Details | Raw Unified | Return to bug 36047
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js (-3 / +4 lines)
Lines 19-28 function formatstr(str, col) { Link Here
19
var HtmlCharsToEscape = {
19
var HtmlCharsToEscape = {
20
    '&': '&',
20
    '&': '&',
21
    '<': '&lt;',
21
    '<': '&lt;',
22
    '>': '&gt;'
22
    '>': '&gt;',
23
    "'": '&apos;',
24
    '"': '&quot;'
23
};
25
};
24
String.prototype.escapeHtml = function() {
26
String.prototype.escapeHtml = function() {
25
    return this.replace(/[&<>]/g, function(c) {
27
    return this.replace(/["'&<>]/g, function(c) {
26
        return HtmlCharsToEscape[c] || c;
28
        return HtmlCharsToEscape[c] || c;
27
    });
29
    });
28
};
30
};
29
- 

Return to bug 36047