Title: HTML editor alters code upon saving
Last modified: August 19, 2016

---

# HTML editor alters code upon saving

 *  [mothership](https://wordpress.org/support/users/mothership/)
 * (@mothership)
 * [16 years ago](https://wordpress.org/support/topic/html-editor-alters-code-upon-saving/)
 * I am entering raw HTML into the HTML tab of the page editor and upon saving extra
   paragraph tags are being entered. e.g.
 * `<div class="one_fourth"><h6>Web Development</h6><p><span class="dropcap1">1</
   span>Donec sed tellus eget sapien fringilla nonummy. Mauris a ante. Suspendisse
   quam sem, consequat at, commodo vitae, feugiat in, nunc. Proin tincidunt, velit
   vel porta elementum, magna diam.</p><img style="margin-top: -10px;" src="http://
   site.com/site-images/home-more.png" alt="more" /></div>`
 * has an extra paragraph opening tag put before the img tag which breaks the validation.
 * Does anyone have a solution on how to get the HTML edit panel to respect HTML
   code entered without changing it?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years ago](https://wordpress.org/support/topic/html-editor-alters-code-upon-saving/#post-1517844)
 * Admin/Settings/Writing.
    Ensure that “WordPress should correct invalidly nested
   XHTML automatically” is **unchecked**.
 *  [Shabbadang](https://wordpress.org/support/users/shabbadang/)
 * (@shabbadang)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/html-editor-alters-code-upon-saving/#post-1518168)
 * My experience is that WP wipes any html you add in the HTML tab when you save
   more than once. I will try the EmbedIt add-on instead.
 *  [Shabbadang](https://wordpress.org/support/users/shabbadang/)
 * (@shabbadang)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/html-editor-alters-code-upon-saving/#post-1518169)
 * Isn’t there any plugin with wich you can get certain styles to appear in the 
   formatting drop-down list? That could be really handy.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘HTML editor alters code upon saving’ is closed to new replies.

## Tags

 * [html](https://wordpress.org/support/topic-tag/html/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [Shabbadang](https://wordpress.org/support/users/shabbadang/)
 * Last activity: [15 years, 9 months ago](https://wordpress.org/support/topic/html-editor-alters-code-upon-saving/#post-1518169)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
