Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $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 );
- add_filter( 'safe_style_css', function( $styles ) {
- $styles[] = 'display';
- return $styles;
- } );
- $html = wp_kses_allowed_html( 'post' );
- $html['style'] = array();
- echo wp_kses( $content, $html );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement