Merge pull request 'baigl' (#182) from baigl into main
Reviewed-on: #182
This commit is contained in:
commit
3603c4e0f2
|
@ -173,12 +173,10 @@ const toolStore = useToolState()
|
||||||
// 将标签中的双引号增加转义
|
// 将标签中的双引号增加转义
|
||||||
const escapeHtmlQuotes = (str) => {
|
const escapeHtmlQuotes = (str) => {
|
||||||
// 后端已replace双引号, 故前端不用在处理
|
// 后端已replace双引号, 故前端不用在处理
|
||||||
return str
|
const regex1 = /\\+/g; // 匹配多个反斜杠
|
||||||
|
let result = str.replace(regex1, '\\');
|
||||||
|
|
||||||
// 只对双引号进行转义
|
return result;
|
||||||
// return str.replace(/(<[^>]+>)/g, function (match) {
|
|
||||||
// return match.replace(/"/g, '\\"')
|
|
||||||
// })
|
|
||||||
}
|
}
|
||||||
const pollingST = ref(null) //轮询定时器标识
|
const pollingST = ref(null) //轮询定时器标识
|
||||||
|
|
||||||
|
|
|
@ -521,12 +521,10 @@ const tableRadioChange = (e) => {
|
||||||
// 将标签中的双引号增加转义
|
// 将标签中的双引号增加转义
|
||||||
const escapeHtmlQuotes = (str) => {
|
const escapeHtmlQuotes = (str) => {
|
||||||
// 后端已replace双引号, 故前端不用在处理
|
// 后端已replace双引号, 故前端不用在处理
|
||||||
return str
|
const regex1 = /\\+/g; // 匹配多个反斜杠
|
||||||
|
let result = str.replace(regex1, '\\');
|
||||||
|
|
||||||
// 只对双引号进行转义
|
return result;
|
||||||
// return str.replace(/(<[^>]+>)/g, function (match) {
|
|
||||||
// return match.replace(/"/g, '\\"')
|
|
||||||
// })
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//#region 作业概况
|
//#region 作业概况
|
||||||
|
|
Loading…
Reference in New Issue