I am using htmlpurifier to clear user content. I am trying to remove inline style attributes like
<div style="float:left">some text</div>
I want to remove the entire style attribute.
How to do this with htmlpurifier?
You can customize AllowedProperties by passing it an array of valid CSS attributes that should not be removed (whitelist approach).
However, the following should remove all css attributes
$config->set('CSS.AllowedProperties', array());
Watch this online demo of cleaning your html file
Source: https://habr.com/ru/post/906112/More articles:Attach local image to MMS in iphone - objective-cIs MMS possible or not for the current iphone version? - objective-cIn the iOS SDK, how can I help my users send MMS mixed with SMS from my application? - iosAre there any caching schemes for Delphi? - memory-managementWhy am I not getting a file not found by excpetion using the Interaction.Shell method? - c #Change character color - jqueryEffectively iterate over all MATCHING keys in hashmap? - javaTable Mapping in Entity Framework - c #jQuery find and replace arrays - jqueryHow to interrupt Crystal report - c #All Articles