Here’s how to make WP quit changing HTML:
In the wp-includes folder, open up function-formatting.php. Edit the wpautop function to comment out the following line:
if ($br) $pee = preg_replace('|(?< !
)\s*\n|', "
\n", $pee); // optionally make line breaks
This will get rid of all those extra p and br tags. I also added the label element into this function, as I like to write my forms like this:
This way, even without styles, the label and the input are on different lines for easier reading.
No Comments