🐛 HTML tag search escaping issue https://github.com/siyuan-note/siyuan/issues/13354
This commit is contained in:
parent
86adbed3f0
commit
81cb18e14d
1 changed files with 2 additions and 0 deletions
|
@ -475,6 +475,8 @@ func FindReplace(keyword, replacement string, replaceTypes map[string]bool, ids
|
|||
|
||||
r, _ := regexp.Compile(keyword)
|
||||
escapedKey := util.EscapeHTML(keyword)
|
||||
escapedKey = strings.ReplaceAll(escapedKey, """, """)
|
||||
escapedKey = strings.ReplaceAll(escapedKey, "'", "'")
|
||||
escapedR, _ := regexp.Compile(escapedKey)
|
||||
ids = gulu.Str.RemoveDuplicatedElem(ids)
|
||||
var renameRoots []*ast.Node
|
||||
|
|
Loading…
Add table
Reference in a new issue