diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go index be14292c4..a7985513f 100644 --- a/kernel/model/attribute_view.go +++ b/kernel/model/attribute_view.go @@ -1087,6 +1087,10 @@ func renderAttributeViewTable(attrView *av.AttributeView, view *av.View, query s if nil != tableCell.Value && nil != tableCell.Value.Relation { tableCell.Value.Relation.Contents = nil } + case av.KeyTypeText: // 渲染文本列 + if nil != tableCell.Value && nil != tableCell.Value.Text { + tableCell.Value.Text.Content = util.EscapeHTML(tableCell.Value.Text.Content) + } } treenode.FillAttributeViewTableCellNilValue(tableCell, rowID, col.ID) diff --git a/kernel/treenode/node.go b/kernel/treenode/node.go index 5fbc14ce1..fd9d5f3b7 100644 --- a/kernel/treenode/node.go +++ b/kernel/treenode/node.go @@ -722,6 +722,10 @@ func renderAttributeViewTable(attrView *av.AttributeView, view *av.View) (ret *a if nil != tableCell.Value && nil != tableCell.Value.Relation { tableCell.Value.Relation.Contents = nil } + case av.KeyTypeText: // 渲染文本列 + if nil != tableCell.Value && nil != tableCell.Value.Text { + tableCell.Value.Text.Content = util.EscapeHTML(tableCell.Value.Text.Content) + } } FillAttributeViewTableCellNilValue(tableCell, rowID, col.ID)