Browse Source

Pull request #1510: BI-73176 fix: htmlEncode编码空格

Merge in VISUAL/fineui from ~KOBI/fineui:master to master

* commit '1acf1771889172907f635ee16f652c1a7bf40b58':
  BI-73176 fix: htmlEncode编码空格
master
Kobi 4 years ago
parent
commit
ac69b9fe71
  1. 5
      src/core/alias.js

5
src/core/alias.js

@ -416,10 +416,11 @@
"&": "&", "&": "&",
"\"": """, "\"": """,
"<": "&lt;", "<": "&lt;",
">": "&gt;" ">": "&gt;",
" ": "&nbsp;"
}; };
BI.htmlEncode = function (text) { 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] : "&nbsp;"; return SPECIAL_TAGS[v] ? SPECIAL_TAGS[v] : "&nbsp;";
}); });
}; };

Loading…
Cancel
Save