From 8639955ff02b15a2885467fecef48e8652f2c905 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sat, 23 Nov 2024 00:20:31 +0800 Subject: [PATCH] :art: Improve backlink doc title escaping --- kernel/model/path.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/model/path.go b/kernel/model/path.go index 2a10685544f..7979ce4b48a 100644 --- a/kernel/model/path.go +++ b/kernel/model/path.go @@ -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: util.EscapeHTML(path.Base(root.HPath)), + Name: 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: util.EscapeHTML(path.Base(root.HPath)), + Name: path.Base(root.HPath), Type: "backlink", NodeType: "NodeDocument", SubType: root.SubType,