mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 Improve escaping https://github.com/siyuan-note/siyuan/issues/13135
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user