🎨 Improve database text, email, url and phone field content escaping https://github.com/siyuan-note/siyuan/issues/11489
This commit is contained in:
parent
f6cab52f4f
commit
8479aef270
1 changed files with 0 additions and 16 deletions
|
@ -161,22 +161,6 @@ 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)
|
||||
}
|
||||
case av.KeyTypeEmail:
|
||||
if nil != tableCell.Value && nil != tableCell.Value.Email {
|
||||
tableCell.Value.Email.Content = util.EscapeHTML(tableCell.Value.Email.Content)
|
||||
}
|
||||
case av.KeyTypeURL:
|
||||
if nil != tableCell.Value && nil != tableCell.Value.URL {
|
||||
tableCell.Value.URL.Content = util.EscapeHTML(tableCell.Value.URL.Content)
|
||||
}
|
||||
case av.KeyTypePhone:
|
||||
if nil != tableCell.Value && nil != tableCell.Value.Phone {
|
||||
tableCell.Value.Phone.Content = util.EscapeHTML(tableCell.Value.Phone.Content)
|
||||
}
|
||||
}
|
||||
|
||||
FillAttributeViewTableCellNilValue(tableCell, rowID, col.ID)
|
||||
|
|
Loading…
Add table
Reference in a new issue