CSS Being Stripped
Using Jamroom
I've just done a full investigation of this over the last day, and there's no work around for allowing some of this CSS that HTML Purifier considers potentially "malicious". Basically any CSS property (this case background gradients and borders) that can have an "opacity" value, can be used to "hide" the HTML element in some way (which is why it is considered malicious), or has the ability to break the HTML of the site (by rendering portions visible or not visible).
I've tried building custom rules for this, but have not been able to come up with something that works correctly.
So in this case what you need to do is:
- create a quota for your "trusted" users and put your own profile in that quota
- in the Core -> Quota Config check the "allow ALL HTML tags" option for the new quota
This will allow all the HTML with the style to be saved correctly.
We do still have the issue of visitors not seeing the same thing which is still being investigated, but at least this will get all your HTML into the blog.
updated by @brian: 12/09/15 06:26:53AM