mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 08:30:42 +02:00
🐛 搜索结果未转义导致脚本执行或白屏 Fix https://github.com/siyuan-note/siyuan/issues/5492
This commit is contained in:
parent
e86e8e242f
commit
c2caef8d49
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue