Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Improve escaping database block content https://github.com/siyuan-note/siyuan/issues/13704

Daniel811399ef871b
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go
index 3a7c8600fb..4f89c31c5f 100644
--- a/kernel/model/attribute_view.go
+++ b/kernel/model/attribute_view.go
@@ -1916,6 +1916,7 @@ func addAttributeViewBlock(now int64, avID, blockID, previousBlockID, addingBloc
var blockIcon string
if !isDetached {
blockIcon, addingBlockContent = getNodeAvBlockText(node)
+ addingBlockContent = util.UnescapeHTML(addingBlockContent)
}
// 检查是否重复添加相同的块