mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +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
|
|
@ -1506,6 +1506,7 @@ func fullTextSearchByLikeWithRoot(query, boxFilter, pathFilter, typeFilter, igno
|
|||
|
||||
keywords = gulu.Str.RemoveDuplicatedElem(keywords)
|
||||
terms := strings.Join(keywords, search.TermSep)
|
||||
terms = strings.ReplaceAll(terms, "''", "'")
|
||||
ret = fromSQLBlocks(&resultBlocks, terms, beforeLen)
|
||||
if 1 > len(ret) {
|
||||
ret = []*Block{}
|
||||
|
|
@ -1514,6 +1515,7 @@ func fullTextSearchByLikeWithRoot(query, boxFilter, pathFilter, typeFilter, igno
|
|||
}
|
||||
|
||||
func highlightByFTS(query, typeFilter, id string) (ret []string) {
|
||||
query = stringQuery(query)
|
||||
const limit = 256
|
||||
table := "blocks_fts"
|
||||
if !Conf.Search.CaseSensitive {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue