Title: HTML Optimization Off
Last modified: August 18, 2016

---

# HTML Optimization Off

 *  [thejoker101](https://wordpress.org/support/users/thejoker101/)
 * (@thejoker101)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/html-optimization-off/)
 * How do I go about turning off the “HTML Optimization” for posts. I’m not sure
   if that is the correct term, but it seems to be correct.
 * Basically, I don’t want WordPress changing the html of my posts as it keeps messing
   it up. I write valid html, so I don’t need it to “fix” it.

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

 *  [f1_error](https://wordpress.org/support/users/f1_error/)
 * (@f1_error)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/html-optimization-off/#post-209737)
 * The real question should be are you writing vaild xhtml? Since WP does try to
   make valid xhtml.
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/html-optimization-off/#post-209739)
 * admin panel > Options > Writing?
 *  [Lorelle](https://wordpress.org/support/users/lorelle/)
 * (@lorelle)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/html-optimization-off/#post-209740)
 * Do you mean that you want WordPress to keep your HTML and XHTML from either not
   working or turning into &lt;p&gt; codes?
 * First, you can try turning off `WordPress should correct invalidly nested XHTML
   automatically` in Admin > Options > Writing. Just make sure you correctly nest
   everything. If not, running a valdation on your site will catch it. It happens
   to everyone. Nested lists are a frequent validation breaker. But I assume you
   know how to check your stuff.
 * Second, download and install [TextControl plugin](http://dev.wp-plugins.org/wiki/TextControl)
   as it allows for globally or on a per-post basis allow you to control how WP 
   formats your posts.
 * I sometimes write quick little posts and I don’t want to put them in tags because
   there is no reason. I want WordPress to take care of it for me, so I set the 
   TextControl options on THAT post to use wpautop and texturize. But for the serious
   stuff that has containers and formatting issues, I turn off all formating and
   character formating. Then the HTML displays the page with no problems.
 * Until I run a validation on the page and found out that I slipped and wrote `
   <il>` instead of `<li>`, which happens to all of us 😉 .
 *  Thread Starter [thejoker101](https://wordpress.org/support/users/thejoker101/)
 * (@thejoker101)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/html-optimization-off/#post-209741)
 * Ok, thanks for the Admin > Options > Writing part, I was actually on that page,
   but I guess I was looking for something a little bit more pronounced.
 * However, that didn’t exactly do what I wanted. WordPress will still insert tags
   at every new line, I don’t want it to do that. Will that TextControl plugin do
   that?
 *  Thread Starter [thejoker101](https://wordpress.org/support/users/thejoker101/)
 * (@thejoker101)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/html-optimization-off/#post-209744)
 * Apparently it yanked out my < p > tag i wrote.
 *  Thread Starter [thejoker101](https://wordpress.org/support/users/thejoker101/)
 * (@thejoker101)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/html-optimization-off/#post-209745)
 * And by “it”, I mean this board.
 *  [Joshua Sigar](https://wordpress.org/support/users/alphaoide/)
 * (@alphaoide)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/html-optimization-off/#post-209753)
 * You mean WP adds all that `<p>` and `<br>` and you don’t want that?
 * Then I guess if you use that TextControl plugin and set it to no formatting, 
   then your post will not be filtered at all.

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

The topic ‘HTML Optimization Off’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 5 participants
 * Last reply from: [Joshua Sigar](https://wordpress.org/support/users/alphaoide/)
 * Last activity: [20 years, 11 months ago](https://wordpress.org/support/topic/html-optimization-off/#post-209753)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
