escape title

v1.18.x
barisusakli 10 years ago
parent c92ef6cf34
commit cf825d02b7

@ -289,7 +289,7 @@ define('composer', [
// https://github.com/NodeBB/NodeBB/issues/1951
// remove when 1951 is resolved
var title = postData.title.replace(/%/g, '%').replace(/,/g, ',');
var title = $('<div/>').text(postData.title).html().replace(/%/g, '&#37;').replace(/,/g, '&#44;');
var data = {
title: title,

Loading…
Cancel
Save