When editing a node, some markup disappears I'm using Drupal 7 and my page loads and looks fine when I add a new node and insert HTML markup. When I edit the page, some of the markup either disappears or it's replaced.
For example, if I add &lt;h3 class=&quot;landing&quot;&gt;, the node saves and it's displayed fine. When I edit the node, &lt;h3 class=&quot;landing&quot;&gt; is replaced by &lt;h3&gt;. If I add &lt;iframe&gt;, &lt;iframe&gt; is replaced by &lt;p&gt;.
Do you know why this would happen? How can I fix it?
I have the same issue, and this is caused by the WYSIWYG editor: When you try to edit a node created with a input format with WYSIWYG enabled, the HTML markup will be changed by the editor.
To solve it, you have two options.

Disable the WYSIWYG editor by default, unselecting the checkbox as shown in the screenshot.




Create a node using an input format that doesn't use the WYSIWYG editor (for example Full HTML, or Filtered HTML). If the Full HTML format is already associated with a WYSIWYG profile, try to create a custom format from /admin/config/content/formats, and use it to create new nodes. Remember to not associate a WYSIWYG profile.