Reply To: Allow HTML from users
I am having this problem with span and p tags showing up as code in the posts, after the latest update.
I tried your advice above and added the following function, but it did not work (p and span tags are still showing, not parsing as html).
Any advice would be greatly appreciated, please. A screenshot of the output can be viewed here: http://screencast.com/t/CKTLbqHVb
add_action( 'bbp_kses_allowed_tags','pyg_kses_allowed_tags',999,1);
function pyg_kses_allowed_tags($input){
return array(
// paragraphs
'p' => array(
'style' => array()
),
'span' => array(
'style' => array()
),
// Links
'a' => array(
'href' => array(),
'title' => array(),
'rel' => array()
),
// Quotes
'blockquote' => array(
'cite' => array()
),
// Code
'code' => array(),
'pre' => array(),
// Formatting
'em' => array(),
'strong' => array(),
'del' => array(
'datetime' => true,
),
// Lists
'ul' => array(),
'ol' => array(
'start' => true,
),
'li' => array(),
// Images
'img' => array(
'src' => true,
'border' => true,
'alt' => true,
'height' => true,
'width' => true,
)
);
}