Skip to content

Commit 0dcf1bf

Browse files
committed
feat: replace jquery usage with utility function in activity search card result - MEED-9241 - Meeds-io/MIPs#193
1 parent 4d28439 commit 0dcf1bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webapp/src/main/webapp/vue-apps/search-activity/components/SearchActivityCard.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export default {
165165
return this.excerpts && this.excerpts.join('\r\n...') || this.body || '';
166166
},
167167
excerptText() {
168-
return $('<div />').html(this.excerptHtml).text();
168+
return this.$utils.htmlToText(this.excerptHtml);
169169
},
170170
activityType() {
171171
if (!this.result) {
@@ -190,7 +190,7 @@ export default {
190190
return this.excerptHtml || this.$t('search.activity.no.title.label');
191191
},
192192
activityTitleText() {
193-
return $('<div />').html(this.activityTitle).text();
193+
return this.$utils.htmlToText(this.activityTitle);
194194
},
195195
isMobile() {
196196
return this.$vuetify?.breakpoint?.smAndDown;

0 commit comments

Comments
 (0)