mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 17:05:51 +01:00
small fix to title escape
This commit is contained in:
@@ -148,7 +148,7 @@ define('composer', ['taskbar', 'composer/controls', 'composer/uploads', 'compose
|
||||
|
||||
push({
|
||||
pid: pid,
|
||||
title: threadData.title,
|
||||
title: $('<div/>').html(threadData.title).text(),
|
||||
body: threadData.body,
|
||||
modified: false,
|
||||
isMain: threadData.isMain,
|
||||
@@ -208,8 +208,6 @@ define('composer', ['taskbar', 'composer/controls', 'composer/uploads', 'compose
|
||||
bodyEl = postContainer.find('textarea'),
|
||||
draft = drafts.getDraft(postData.save_id);
|
||||
|
||||
postData.title = $('<div></div>').text(postData.title).html();
|
||||
|
||||
updateTitle(postData, postContainer);
|
||||
|
||||
if (allowTopicsThumbnail) {
|
||||
|
||||
Reference in New Issue
Block a user