diff --git a/src/core/alias.js b/src/core/alias.js index d1e3231e52..da5af0fb62 100644 --- a/src/core/alias.js +++ b/src/core/alias.js @@ -416,10 +416,11 @@ "&": "&", "\"": """, "<": "<", - ">": ">" + ">": ">", + " ": " " }; BI.htmlEncode = function (text) { - return BI.isNull(text) ? "" : BI.replaceAll(text + "", "&|\"|<|>", function (v) { + return BI.isNull(text) ? "" : BI.replaceAll(text + "", "&|\"|<|>|\\s", function (v) { return SPECIAL_TAGS[v] ? SPECIAL_TAGS[v] : " "; }); };