fix: admin energy.js escapeHtml 补充单引号转义
- escapeHtml 新增 .replace(/'/g, ''') 处理单引号 - 管理后台能量流水中的单引号内容现在能正确转义显示
This commit is contained in:
@ -194,7 +194,7 @@
|
|||||||
|
|
||||||
function escapeHtml(text) {
|
function escapeHtml(text) {
|
||||||
if (!text) return '';
|
if (!text) return '';
|
||||||
return text.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"');
|
return text.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"').replace(/'/g, ''');
|
||||||
}
|
}
|
||||||
|
|
||||||
function showMsg(msgEl, text, type) {
|
function showMsg(msgEl, text, type) {
|
||||||
|
|||||||
Reference in New Issue
Block a user