FIX: Properly whitelist li styles

This commit is contained in:
riking 2015-05-14 16:43:01 -07:00
parent 8e395a94d4
commit 9d232dac9a

View File

@ -178,6 +178,6 @@
Discourse.Markdown.whiteListTag("a", "class", /^button (cast-votes|toggle-results)/);
Discourse.Markdown.whiteListTag("li", "data-*");
Discourse.Markdown.whiteListTag("li", "style");
Discourse.Markdown.whiteListTag("li", "style", /^(color=#?\w+;)?(background=#?\w+;)?$/);
})();