mirror of
https://github.com/discourse/discourse.git
synced 2025-03-30 14:05:37 +08:00
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…
x
Reference in New Issue
Block a user