Fix #3939: Quoting a post with apostrophes replaces them with '.

This commit is contained in:
evazion
2018-10-01 20:24:00 -05:00
parent bd3fb7d70e
commit d727e0e34c

View File

@@ -2,7 +2,7 @@ var $div = $('div.comments-for-post[data-post-id="<%= @comment.post_id %>"] div.
$div.find(".expand-comment-response").click();
var $textarea = $div.find("textarea");
var msg = "<%= j @comment.body %>";
var msg = <%= raw @comment.body.to_json %>;
if ($textarea.val().length > 0) {
msg = $textarea.val() + "\n\n" + msg;
}