This commit is contained in:
Daniel 2024-11-15 23:29:24 +08:00
parent 704f23fe02
commit c086ec4eef
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -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,