mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-05 00:08:49 +01:00
🎨 HTML tag search escaping issue https://github.com/siyuan-note/siyuan/issues/13354
This commit is contained in:
parent
b0b88d3664
commit
7e3ce7b6d9
2 changed files with 2 additions and 1 deletions
|
|
@ -798,7 +798,6 @@ func GetDoc(startID, endID, id string, index int, query string, queryTypes map[s
|
|||
typeFilter := buildTypeFilter(queryTypes)
|
||||
switch queryMethod {
|
||||
case 0:
|
||||
query = strings.ReplaceAll(query, "'", "''") // 不需要转义双引号,因为条件都是通过单引号包裹的,只需要转义单引号即可
|
||||
keywords = strings.Split(query, " ")
|
||||
case 1:
|
||||
keywords = highlightByFTS(query, typeFilter, rootID)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue