Hello,
I have been working on implementing safecracker on my site and have run into an issue when trying to save or edit a field that includes some specific html entities. Namely <, >, or &.
It is converting the html characters to their corresponding code.
Example:
< is being changed to "& l t ;" <-- without the spaces or quotes
> is being changed to '& g t ;' <-- without the spaces or quotes
I have looked all through this forum but have not found anything on this issue.
The form saves the data, but it is saving it with the characters changed. How can I have the characters not altered when the safecracker form is submitted?
When I save or re-edit the entry from inside the EE control panel, all works correctly. With the html characters remaining in the correct format.
As an example. If I am trying to save a field containing
<object width="640" height="481">
from a safecracker form, it is being saved as
"& l t ;"object height="468" width="640""& g t ;"
Once again the above doesn’t include the spaces or quotes (so I can show the characters to you). However, it saves correctly if I edit the entry directly from inside EE.
Any assistance would be appreciated.
Thanks,
Mark