Skip to content

Commit 64716f9

Browse files
committed
Portal.view.blog.List: use text over html for vdom #6877
1 parent 9c7a88b commit 64716f9

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

apps/portal/view/blog/List.mjs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,15 @@ class List extends BaseList {
122122
{cls: ['neo-full-size', 'preview-image'], flag: `image-${record.id}`},
123123
{cls: ['neo-absolute', 'neo-item-bottom-position'], cn: [
124124
{tag: 'a', cls: ['neo-title'], href: record.url, target: '_blank', cn: [
125-
{flag: 'name', html: record.name.replace(List.nameRegEx, "$1")}
125+
{flag: 'name', html: record.name.replace(List.nameRegEx, '$1')}
126126
]},
127127
{cls: ['neo-top-20'], cn: [
128128
{tag: 'img', cls: ['neo-user-image'], src: `${imageBasePath}/blogAuthor/${record.authorImage}`},
129129
{cls: ['neo-inner-content'], cn: [
130130
{cls: ['neo-inner-details'], flag: 'author', cn: [
131-
{tag: 'span', cls: ['neo-bold'], html: record.author}
131+
{tag: 'span', cls: ['neo-bold'], text: record.author}
132132
]},
133-
{cls: ['neo-inner-details'], html: record.date}
133+
{cls: ['neo-inner-details'], text: record.date}
134134
]}
135135
]}
136136
]}
@@ -140,16 +140,16 @@ class List extends BaseList {
140140

141141
if (record.publisher.length > 0) {
142142
VDomUtil.getByFlag(vdomCn[0], 'author').cn.push(
143-
{vtype: 'text', html : ' in '},
144-
{tag: 'span', cls: ['neo-bold'], html: record.publisher}
143+
{vtype: 'text', text : ' in '},
144+
{tag: 'span', cls: ['neo-bold'], text: record.publisher}
145145
)
146146
}
147147

148148
if (record.selectedInto.length > 0) {
149149
vdomCn[0].cn[0].cn.splice(1, 0,
150150
{cls: ['neo-absolute', 'neo-item-top-position'], cn: [
151-
{html: `Officially selected by ${record.provider} into`},
152-
{cls: ['neo-bold'], html: record.selectedInto.join('</br>')}
151+
{text: `Officially selected by ${record.provider} into`},
152+
{cls: ['neo-bold'], text: record.selectedInto.join('</br>')}
153153
]}
154154
)
155155
}

0 commit comments

Comments
 (0)