The 'code' shortcode is changing my code :)

  • Unknown's avatar

    Hi,
    I guess the subject say it all. Whenever I write some code to share on my blog (using code shortcode), and I save the changes, once I come back to the post, I notice that some of the code special chars (<, >, ‘ …etc) have been replaced with their equivalent html entities. When displaying the code, those entities are not being translated back in the view. For example, the following code:
    console.log(2 > 1); //Boolean

    Is being replaced with this code, and displayed as it is:
    console.log(2 > 1); //Boolean

    What am I missing here?

    The blog I need help with is: (visible only to logged in users)

  • The topic ‘The 'code' shortcode is changing my code :)’ is closed to new replies.