Closed zosiazija closed 10 years ago
When you use bbcode it doesn't close the end tags properly i think it is because of the slash ("/") character in these functions:
//app.js var entityMap = { "&": "&", "<": "<", ">": ">", '"': '"', "'": ''', "/": '/' }; function escapeHtml(string) { return String(string).replace(/[&<>"'\/]/g, function (s) { return entityMap[s]; }); } bbcode.parse(escapeHtml(data.message), function(content){ ...
if you remove the slash in this functions, everything will be ok) you can test bbcode right now on your own chat)
Good catch, I have commited a fix for this bug. Reference: 7b5036277b87d11e4debf45e1139f19c7baf3b8d
When you use bbcode it doesn't close the end tags properly i think it is because of the slash ("/") character in these functions:
if you remove the slash in this functions, everything will be ok) you can test bbcode right now on your own chat)