Last active
April 25, 2016 21:58
-
-
Save ridinghoodmedia/8b01035fafac68065e32cf2f17754d23 to your computer and use it in GitHub Desktop.
wp_kses boilerplate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Escape and echo search output and pagination | |
echo wp_kses( $content, array( | |
'div' => array( | |
'class' => array(), | |
'id' => array()), | |
'ul' => array('class' => array()), | |
'li' => array( | |
'class' => array(), | |
'p' => array()), | |
'a' => array( | |
'class' => array(), | |
'href' => array(), | |
'title' => array()), | |
'span' => array( | |
'class' => array()), | |
'h3' => array('class' => array()), | |
'p' => array('class' => array()), | |
'br' => array(array()), | |
'img' => array( | |
'class' => array(), | |
'src' => array(), | |
'alt' => array()), | |
) ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment