FIX: Change the approach to sanitization. Includes a more detailed API

for allowing classes and attributes for only certain tag names.
This commit is contained in:
Robin Ward
2014-07-03 16:54:56 -04:00
parent cfeae239a8
commit fc1ce96dbb
10 changed files with 128 additions and 58 deletions

View File

@@ -156,5 +156,5 @@
});
}
Discourse.Markdown.whiteListClass("emoji");
Discourse.Markdown.whiteListTag('img', 'class', 'emoji');
}).call(this);