FIX: Weird double escaping of `<` and `>` in quotes
This commit is contained in:
parent
f2db4bfcf3
commit
9c882795c3
|
@ -146,7 +146,7 @@ const PostView = Discourse.GroupedView.extend(Ember.Evented, {
|
|||
|
||||
Discourse.ajax("/posts/by_number/" + topicId + "/" + postId).then(function (result) {
|
||||
// slightly double escape the cooked html to prevent jQuery from unescaping it
|
||||
const escaped = result.cooked.replace("&", "&");
|
||||
const escaped = result.cooked.replace(/&[^gla]/, "&");
|
||||
const parsed = $(escaped);
|
||||
parsed.replaceText(originalText, "<span class='highlighted'>" + originalText + "</span>");
|
||||
$blockQuote.showHtml(parsed, 'fast', finished);
|
||||
|
|
Loading…
Reference in New Issue