mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-09 10:18:50 +01:00
🐛 Fix HTML tag search escaping https://github.com/siyuan-note/siyuan/issues/13354
This commit is contained in:
parent
497037465b
commit
67f64f7b2b
2 changed files with 3 additions and 3 deletions
|
|
@ -1459,8 +1459,7 @@ func fullTextSearchCountByFTS(query, boxFilter, pathFilter, typeFilter, ignoreFi
|
|||
}
|
||||
|
||||
func fullTextSearchByLikeWithRoot(query, boxFilter, pathFilter, typeFilter, ignoreFilter, orderBy string, beforeLen, page, pageSize int) (ret []*Block, matchedBlockCount, matchedRootCount int) {
|
||||
query = strings.ReplaceAll(query, "'", "''")
|
||||
query = strings.ReplaceAll(query, "\"", "\"\"")
|
||||
query = strings.ReplaceAll(query, "'", "''") // 不需要转义双引号,因为条件都是通过单引号包裹的,只需要转义单引号即可
|
||||
keywords := strings.Split(query, " ")
|
||||
contentField := columnConcat()
|
||||
var likeFilter string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue