mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-21 18:37:43 +08:00
Fix:由于设置 data-value 时已经对大于小于进行了转换,因此取消打开文本编辑时对大于小于符号的转换
This commit is contained in:
parent
49e3a80113
commit
9f38d66c73
@ -113,11 +113,7 @@ class Formula {
|
||||
for (const el of els)
|
||||
nodeText = nodeText.replace(
|
||||
el.outerHTML,
|
||||
`\$${el
|
||||
.getAttribute('data-value')
|
||||
.replaceAll('&', '&')
|
||||
.replaceAll('<', '<')
|
||||
.replaceAll('>', '>')}\$`
|
||||
`$${el.getAttribute('data-value')}$`
|
||||
)
|
||||
}
|
||||
return nodeText
|
||||
|
||||
Loading…
Reference in New Issue
Block a user