Fix:由于设置 data-value 时已经对大于小于进行了转换,因此取消打开文本编辑时对大于小于符号的转换

This commit is contained in:
wangshun 2024-09-06 14:20:36 +08:00
parent 49e3a80113
commit 9f38d66c73

View File

@ -113,11 +113,7 @@ class Formula {
for (const el of els)
nodeText = nodeText.replace(
el.outerHTML,
`\$${el
.getAttribute('data-value')
.replaceAll('&', '&')
.replaceAll('<', '&lt;')
.replaceAll('>', '&gt;')}\$`
`$${el.getAttribute('data-value')}$`
)
}
return nodeText