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!
-
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
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.