We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28240
    • 11 Posts
    MODx screws up entirely the php code i paste for a snippet. After saving, when i edit i see it substitutes chars for it’s HTML entities. Every subsequent save makes the problem worse.

    Suggestions will be appreciated!
      • 25663 MODX Staff
      • 12,272 Posts
      Supply a code sample, link and context, please.
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 28240
        • 11 Posts
        Piece of original code:

        case 2:
        $dia_da_semana = ’Terça Feira’;
        break;

        After saving:

        case 2:
        $dia_da_semana = ’Terça Feira’;
        break;

        After saving twice:

        case 2:
        $dia_da_semana = ’Terça Feira’;
        break;

        And so on.

        This is inside snippet code edit.

        tks.