I’m having the same problem, only not with Wygwam. Just a plain textarea in Safecracker. I have an entry with an iframe for youtube video embed in that field. When I edit the field with SC the iframe tag brackets are converted to entities and the code displays on the page instead of being rendered. This doesn’t happen if I edit it in the CP, only in SC.
So I don’t think it has anything to do with Wygwam and everything to do with SC.
Here an example of the original content of that textarea field:
<iframe title="YouTube video player" width="420" height="345" src="http://www.youtube.com/embed/rBvE9JjD-6I?rel=0" frameborder="0" allowfullscreen></iframe>
and here’s what happens after save in SC:
<iframe title="YouTube video player" width="420" height="345" src="http://www.youtube.com/embed/rBvE9JjD-6I?rel=0" frameborder="0" allowfullscreen></iframe>
Is there a setting somewhere to stop SC from converting these to entities? Otherwise it’s impossible to post these types of embed codes within an entry created or edited by SC.
***edit - woops that code failed. Looks like the forum is converting back the entity instead of displaying as code. Just imagine in the second example most of the opening and closing guys as & l t ; and & g t ;.