Use decent escaping of special characters in transaction messages

This commit is contained in:
benji 2016-05-20 15:08:14 +02:00
parent 50d27561e4
commit 8a9e9d9184
2 changed files with 7 additions and 1 deletions

View file

@ -34,6 +34,12 @@ ready = function() {
render: function(data, type, full, meta) {
return (data/100).toFixed(2);
}
},
{
targets: 4,
render: function(data, type, full, meta) {
return new Option(data).innerHTML
}
}
]
});

View file

@ -13,7 +13,7 @@ class DataTable
draw: @params[:draw],
recordsTotal: @user.transactions.count,
recordsFiltered: count,
data: data.map { |d| (d["message"] = json_escape(d["message"])) && d }
data: data
}
end
private