I’m having a strange issue with safecracker where it strips attributes from html elements in a textarea fieldtype. (This was also happening with a WYGWAM fieldtype, so I turned it into a textarea to troubleshoot.)
For example, the style attribute on an image gets completely stripped when posted via safecracker. However, if I post via CP it’s fine.
The fieldtype is set to textarea with XHTML formatting. If I manually add the style=“border:1px solid red” to the CP it posts and displays in the template fine.
If I try the same thing via a safecracker form, the style attribute gets completely removed when I post.
Any ideas of why this might be happening?
I should add that I am running the latest version of EE (2.3.1).