• Resolved gamedeveloper1337

    (@gamedeveloper1337)


    Hello,

    Symbols like < and > are being replaced by its codes when entering the edit post page and not being replaced back to normal representation.
    It can be even seen in the revision history: instantly when you open the page, 2 new revisions are created. But you cannot just revert it to the old revision, as it also uses these codes instead of symbols.
    And if you scroll through revisions history, you could see how this plugin thrashes the history by replacing “&lt;” to “<” back and forth.
    Is there any workaround?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi there,

    I tried replicating the issue as you described on my test website using some boilerplate HTML code but could not reproduce the problem.

    The code was rendered correctly, including the < & > symbols both times, i.e., when I first created the post and then edited & saved the post.

    To help us understand, please share the code with which you are having the issue.

    Which version of WordPress & SyntaxHighlighter Evolved plugin is installed on your website?

    Are you using the Block Editor or the Classic Editor on your site?

    Thread Starter gamedeveloper1337

    (@gamedeveloper1337)

    Hello,

    I am using the Block Editor. SyntaxHighlighter Evolved Version 3.6.1, WP Version 5.9.2.

    Lang I am using is “csharp”.

    Here is the code example

           drawCommands->drawCommands[0].visibleOffset = 0;
            drawCommands->drawCommands[0].visibleCount = _instancesCount;
            drawCommands->drawCommands[0].batchID = _batchID;
            drawCommands->drawCommands[0].materialID = _materialID;
            drawCommands->drawCommands[0].meshID = _meshID;
            drawCommands->drawCommands[0].submeshIndex = 0;
            drawCommands->drawCommands[0].splitVisibilityMask = 0xff;
            drawCommands->drawCommands[0].flags = 0;
            drawCommands->drawCommands[0].sortingPosition = 0;
    

    It doesn’t happen every time, but still very often.
    Here is how it is rendered on a preview page:
    https://freeimage.host/i/GeCo9R

    How it looks in the editor:
    https://freeimage.host/i/GeCxup

    And that’s a revision history example:
    https://freeimage.host/i/GeCzwN
    It keeps adding more and more codes. And usually I see 2 revisions saved simultaneously when I open the post to edit.

    Hi again,

    Thanks for getting back to us! I checked the issue on my test website, but I could not replicate the problem.

    Here is a screencast of the test https://d.pr/i/YPQPl5

    It’s possible that there might be a conflict with one of your current plugins or your theme.

    Try disabling all of your plugins except SyntaxHighlighter Evolved. Then try testing again to see if the issue persists. If that resolves your issue, you can find what was causing it by enabling each plugin one by one while continuing to test.

    If that doesn’t help, you can also try switching to the Twenty Twenty theme via Appearance > Themes, and test again. If the issue is resolved then you know it’s a problem with the theme, and you’ll need to contact the theme author for further assistance.

    Let us know how it goes.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Special symbols are replaced by its code when entering post editor’ is closed to new replies.