🎨 Improve escaping https://github.com/siyuan-note/siyuan/issues/13135
This commit is contained in:
parent
704f23fe02
commit
c086ec4eef
1 changed files with 2 additions and 2 deletions
|
@ -152,7 +152,7 @@ func toFlatTree(blocks []*Block, baseDepth int, typ string, tree *parse.Tree) (r
|
|||
treeNode := &Path{
|
||||
ID: root.ID,
|
||||
Box: root.Box,
|
||||
Name: path.Base(root.HPath),
|
||||
Name: util.EscapeHTML(path.Base(root.HPath)),
|
||||
NodeType: root.Type,
|
||||
Type: typ,
|
||||
SubType: root.SubType,
|
||||
|
@ -196,7 +196,7 @@ func toSubTree(blocks []*Block, keyword string) (ret []*Path) {
|
|||
treeNode := &Path{
|
||||
ID: root.ID,
|
||||
Box: root.Box,
|
||||
Name: path.Base(root.HPath),
|
||||
Name: util.EscapeHTML(path.Base(root.HPath)),
|
||||
Type: "backlink",
|
||||
NodeType: "NodeDocument",
|
||||
SubType: root.SubType,
|
||||
|
|
Loading…
Add table
Reference in a new issue