Compare commits
4 Commits
151cdbb1a1
...
7da1d97939
Author | SHA1 | Date |
---|---|---|
zhangxuelin | 7da1d97939 | |
baigl | 3603c4e0f2 | |
白了个白 | cb1c3c23fe | |
白了个白 | de1dee7380 |
|
@ -173,12 +173,10 @@ const toolStore = useToolState()
|
|||
// 将标签中的双引号增加转义
|
||||
const escapeHtmlQuotes = (str) => {
|
||||
// 后端已replace双引号, 故前端不用在处理
|
||||
return str
|
||||
const regex1 = /\\+/g; // 匹配多个反斜杠
|
||||
let result = str.replace(regex1, '\\');
|
||||
|
||||
// 只对双引号进行转义
|
||||
// return str.replace(/(<[^>]+>)/g, function (match) {
|
||||
// return match.replace(/"/g, '\\"')
|
||||
// })
|
||||
return result;
|
||||
}
|
||||
const pollingST = ref(null) //轮询定时器标识
|
||||
|
||||
|
|
|
@ -521,12 +521,10 @@ const tableRadioChange = (e) => {
|
|||
// 将标签中的双引号增加转义
|
||||
const escapeHtmlQuotes = (str) => {
|
||||
// 后端已replace双引号, 故前端不用在处理
|
||||
return str
|
||||
const regex1 = /\\+/g; // 匹配多个反斜杠
|
||||
let result = str.replace(regex1, '\\');
|
||||
|
||||
// 只对双引号进行转义
|
||||
// return str.replace(/(<[^>]+>)/g, function (match) {
|
||||
// return match.replace(/"/g, '\\"')
|
||||
// })
|
||||
return result;
|
||||
}
|
||||
|
||||
//#region 作业概况
|
||||
|
|
Loading…
Reference in New Issue