Code shortcode is changing special chars

  • Unknown's avatar

    Hi,

    I posted some code on my blog, and every time I go back to the post to edit it or update it, I see that the special chars has been modified to HTML entities. For example this piece of code:
    [code language="javascript"]
    for (var i = 0; i < 100; i++) {
    var n = Math.random() * 100;
    console.log('The number is %d', n);
    (n < 50) ? console.log('the number is less than 50') : console.log('the number is greater than 50');
    }
    [/code]

    Is being replaced with:
    [code language="javascript"]
    for (var i = 0; i < 100; i++) {
    var n = Math.random() * 100;
    console.log('The number is %d', n);
    (n < 50) ? console.log('the number is less than 50') : console.log('the number is greater than 50');
    }
    [/code]
    I’m not sure what is the problem?

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

  • The topic ‘Code shortcode is changing special chars’ is closed to new replies.