Why is wp_kses not keeping style attributes as expected?
I want to keep the style attribute. $str is just an example, here’s my code: $allowed_html = array( ‘div’ => array( ‘title’ => array(), ‘class’ => array(), ‘style’ => array() ) ); $str=”<div title=”Click to continue’ style=”display:table”>This is a button</div>’; wp_kses($str, $allowed_html ); $str will actually receive a bunch of html tags and attributes from … Read more