• I’m using v3.7.0 of this plugin on WP v6.4.2 but after saving post/page some symbols are replaced by their HTML entities!!

    eg.: the symbol “lower than” is replaced by < and so on…

    It shouldn’t.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Deric (a11n)

    (@dericleeyy)

    I just tried to reproduce this but did not manage to:

    What language did you set the block to?

    Thread Starter AJB Ferreira

    (@op351net)

    Hi there, thank you for replying!

    This is the code I currently have:

    [code language="php"]
    $myHtml = '<span>Isto é um exemplo apenas num documento HTML</span>';
    $myTxt = getElem($myHtml,'<span>','</span>');
    echo $myTxt;
    [/code]

    You can see the quantity of amp; !!! That’s because every time I save the post/page there’s a conversion…

    Can’t reproduce original code here cause it’s also changed when I save this post!

    I hope I made myself clear…

    • This reply was modified 11 months, 1 week ago by AJB Ferreira.
    • This reply was modified 11 months, 1 week ago by AJB Ferreira.
    • This reply was modified 11 months, 1 week ago by AJB Ferreira.
    • This reply was modified 11 months, 1 week ago by AJB Ferreira.
    Plugin Support Deric (a11n)

    (@dericleeyy)

    I see you are using the shortcode.

    Are you using the block editor? Could you try using the Syntax block instead to see if the same issue persists?

    Thread Starter AJB Ferreira

    (@op351net)

    Hi there,

    I’ve tried with the plugin’s block as you suggested and code is not changed!

    Being so, I may reserve the shortcodes for snippets without HTML tags and will use the plugin’s block for the ones with HTML tags.

    The use of shortcodes makes my writing more fluid and easier so, please, see if you resolve this bug…

    Thanks,

    • This reply was modified 11 months, 1 week ago by AJB Ferreira.
    Plugin Support Jay

    (@bluejay77)

    Hey @op351net,

    Would you share with us the original value of $myHtml in your reply? I’d like to reproduce the issue on our end.

    Are you using any special symbols in the string?

    Thread Starter AJB Ferreira

    (@op351net)

    Hi there,

    The better way is I share with you the link to the page where the code is

    https://ajbferreira.pt/extrair-conteudo-entre-tags/

    I use the shortcode for the first set of code and the plugin’s block for the second.

    Symbols like ‘ampersand’, ‘lower than’ or ‘greater than’ are the issue: they get changed when post/page is saved…

    I hope you fix it…

    Plugin Support Jay

    (@bluejay77)

    Hi there,

    I’m still not 100% sure what code snippet you have entered originally, but I’ve done some tests to include ampersand (“&”) and I couldn’t reproduce the issue.

    I added ampersand in the value of the string $myHtml:

    Screenshot Link: https://d.pr/i/eDmYXE

    …and it didn’t create additional ampersand tags:

    Screenshot Link: https://d.pr/i/laLw3J

    Since we couldn’t reproduce, I suspect there may be other things on your site that’s causing the issue. Would you try disabling all other plugins temporarily and try again? Health Check is a tool that can be useful for debugging, though it requires an official default theme like Twenty Seventeen. On the troubleshooting tab, you can click the button to disable all plugins and change the theme for you while you’re logged in to that session without affecting normal visitors to your site.

    Thread Starter AJB Ferreira

    (@op351net)

    Hi there,

    in the link I sent you, you’re redirected to a page where you can see the original code!! On the other hand, I see a lot of ampersands in the sample you show in your post here and the code pretty much changed…

    Anyway, I don’t believe my plugins are affecting yours but I will go for a troubleshooting as you suggest.

    Regards,

    Plugin Support Stef (a11n)

    (@erania-pinnera)

    Hey @op351net,

    We appreciate you’re going through the test we suggested.

    Let us know what you find out!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Not working on WP 6.4.2’ is closed to new replies.