Skip to content

Commit

Permalink
🎨 Improve escaping #13135
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Nov 15, 2024
1 parent 704f23f commit c086ec4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/model/path.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit c086ec4

Please sign in to comment.