mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-21 11:30:42 +08:00
🐛 搜索结果未转义导致脚本执行或白屏 Fix https://github.com/siyuan-note/siyuan/issues/5492
This commit is contained in:
parent
e86e8e242f
commit
c2caef8d49
@ -26,7 +26,7 @@ import (
|
||||
|
||||
func MarkText(text string, keyword string, beforeLen int, caseSensitive bool) (pos int, marked string) {
|
||||
if "" == keyword {
|
||||
return -1, text
|
||||
return -1, html.EscapeString(text)
|
||||
}
|
||||
text = html.EscapeString(text)
|
||||
keywords := SplitKeyword(keyword)
|
||||
|
Loading…
Reference in New Issue
Block a user