mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-08 00:04:21 +01:00
🐛 Breadcrumbs are escaped multiple times Fix https://github.com/siyuan-note/siyuan/issues/8580
This commit is contained in:
parent
ed5700ebd6
commit
7475d79ba5
3 changed files with 3 additions and 19 deletions
|
|
@ -27,7 +27,6 @@ import (
|
|||
"github.com/88250/gulu"
|
||||
"github.com/88250/lute/ast"
|
||||
"github.com/88250/lute/editor"
|
||||
"github.com/88250/lute/html"
|
||||
"github.com/88250/lute/parse"
|
||||
"github.com/siyuan-note/logging"
|
||||
"github.com/siyuan-note/siyuan/kernel/sql"
|
||||
|
|
@ -310,7 +309,7 @@ func buildBlockBreadcrumb(node *ast.Node, excludeTypes []string) (ret []*BlockPa
|
|||
if add {
|
||||
ret = append([]*BlockPath{{
|
||||
ID: id,
|
||||
Name: html.EscapeString(name),
|
||||
Name: util.EscapeHTML(name),
|
||||
Type: parent.Type.String(),
|
||||
SubType: treenode.SubTypeAbbr(parent),
|
||||
}}, ret...)
|
||||
|
|
@ -331,7 +330,7 @@ func buildBlockBreadcrumb(node *ast.Node, excludeTypes []string) (ret []*BlockPa
|
|||
name = gulu.Str.SubStr(renderBlockText(b, excludeTypes), maxNameLen)
|
||||
ret = append([]*BlockPath{{
|
||||
ID: b.ID,
|
||||
Name: html.EscapeString(name),
|
||||
Name: util.EscapeHTML(name),
|
||||
Type: b.Type.String(),
|
||||
SubType: treenode.SubTypeAbbr(b),
|
||||
}}, ret...)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue