mirror of
https://github.com/discourse/discourse.git
synced 2026-08-26 21:27:16 -05:00
Fix sanitization of smileys like <_< and <3.
This commit is contained in:
@@ -154,6 +154,7 @@ Discourse.Markdown = {
|
||||
**/
|
||||
sanitize: function(text) {
|
||||
if (!window.html_sanitize) return "";
|
||||
text = text.replace(/<([^A-Za-z\/]|$)/g, "<$1");
|
||||
return window.html_sanitize(text, Discourse.Markdown.urlAllowed, Discourse.Markdown.nameIdClassAllowed);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user