How to prevent HTMLPurifier from sanitizing the inline style attribute?
I’m using HTMLPurifier to sanitize HTML, but I want to prevent any changes to the inline style attribute. Specifically, I don’t want HTMLPurifier to modify or sanitize the values of the style attribute while purifying the HTML.
Have HTMLPurifier take my custom config into account
I cannot figure how to use HTMLPurifier (ezyang/htmlpurifier) out of the box.
Here is an example where I cannot keep the align
attribute in the output.