Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter SeventhQueen

    (@seventhqueen)

    see line 203 in crayon_wp.class.php

    $the_content = strip_tags($the_content);

    I am experiencing the same issue.
    Reverting to version 2.7.0 of the plugin fixed the problem.
    Version 2.8.1 has the problem as well.

    Thread Starter SeventhQueen

    (@seventhqueen)

    I ended up commenting that line but since the new update all my codes are gone which is really bad and all of them show blank.. very nasty

    Just had the same problem. Completely screwed up my bbpress embedded videos and and had to comment out the ‘strip_tags’ function to fix the issue.

    Hopefully the plugin developer will fix this in the next update.

    Lux

    Same problem here… So I have just to comment out that line and the text inside my forum will be back as normal and also the code inside my posts will be safe?

    For the time being it’s not a bad thing, but I hope the developer will correct the issue ??

    Anyway great plugin and thanks for your effort!

    Thanks, solution works for now.

    Plugin Author akarmenia

    (@akarmenia)

    You can change that line with something like:

    $allowed_html = array(
    			'a' => array(
    				'href' => array(),
    				'title' => array()
    			),
    			'br' => array(),
    			'em' => array(),
    			'strong' => array(),
    			'p' => array(),
    			'ul' => array(
    				'class' => array(),
    			),
    			'li' => array(
    				'class' => array(),
    			),
    			'span' => array(),
    			'small' => array(),
    			'img' =>  array(
    				'src' => array(),
    				'alt' => array()
    			),
    		);
            $the_content = wp_kses($the_content, $allowed_html);

    The latest update fixed the issue and it’s not stripping html from bbpress posts but it is stripping out jwplayer code that I have in posts.

    I’ve confirmed it’s the crayon plugin by disabling it and the videos load as expected.

    I’m trying to figure out a workaround but if anybody has any suggestions I’d be most grateful.

    Lux

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Crayon plugin strips tags on my forum content’ is closed to new replies.