diff --git a/public/src/modules/composer.js b/public/src/modules/composer.js index e6c34ace3e..4e8ce528f3 100644 --- a/public/src/modules/composer.js +++ b/public/src/modules/composer.js @@ -210,7 +210,7 @@ define('composer', [ push({ tid: tid, toPid: pid, - title: title, + title: $('
').text(title).html(), body: translated, modified: false, isMain: false, @@ -230,7 +230,7 @@ define('composer', [ pid: pid, uid: threadData.uid, handle: threadData.handle, - title: $('').html(threadData.title).text(), + title: threadData.title, body: threadData.body, modified: false, isMain: threadData.isMain, @@ -304,7 +304,7 @@ define('composer', [ // https://github.com/NodeBB/NodeBB/issues/1951 // remove when 1951 is resolved - var title = $('').text(postData.title).html().replace(/%/g, '%').replace(/,/g, ','); + var title = postData.title.replace(/%/g, '%').replace(/,/g, ','); var data = { title: title,