Skip to content

Commit

Permalink
Revert "fix: post preview body shows html tags in legacy discussion (#…
Browse files Browse the repository at this point in the history
…30007)" (#30016)

This reverts commit 89f92a1.
  • Loading branch information
robrap authored Mar 4, 2022
1 parent 058bd56 commit 8178a03
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -359,11 +359,7 @@
},
thread.toJSON()
);
let $threadHTML = $(this.threadListItemTemplate(context).toString());
let previewBody = $threadHTML.find('.thread-preview-body').text();
previewBody = new DOMParser().parseFromString(previewBody, "text/html").documentElement.textContent;
$threadHTML.find('.thread-preview-body').text(previewBody);
return $threadHTML;
return $(this.threadListItemTemplate(context).toString());
};

DiscussionThreadListView.prototype.threadSelected = function(e) {
Expand Down

0 comments on commit 8178a03

Please sign in to comment.