Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author CreativeMindsSolutions

    (@creativemindssolutions)

    We have removed code suppor from regular plugin and now only support this in pro plugin. For SyntaxHighlighter you can remove text filtering so everything will padd throught

    Look for wp_kses function in /lib/models/AnswerThread.php (appears twice) and make sure it does not remove any tags. This way you can bypass the current filtering and let SyntaxHighlighter to work

    Thread Starter ParthGupta

    (@parthgupta)

    sorry but could you please explain it (I am a newbie to PHP)

    Plugin Author CreativeMindsSolutions

    (@creativemindssolutions)

    You need to replace

    $content = trim(wp_kses($data[‘content’],
    array(
    ‘a’ => array(
    ‘href’ => array(),
    ‘title’ => array()
    ),
    ’em’ => array(),
    ‘strong’ => array(),
    ‘b’ => array(),
    ‘pre’ => array()
    )));

    With
    $content = $data[‘content’];

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem with CM Answer when posting Coding in it.’ is closed to new replies.