[wp-hackers] Making the HTML editor output HTML in full

Jake McMurchie jake.mcmurchie at googlemail.com
Tue Apr 21 08:31:34 GMT 2009

2009/4/21 Stephen Rider <wp-hackers at striderweb.com>

> You can add all the <p> tags you like, and they will work.  When displaying
> a page, WordPress takes the partial HTML from the edit and turns it into
> valid HTML, adding any missing tags on the fly.  So if you add a <p> tag, it
> will use yours.

Thanks Steve, but when the post is saved and viewed again in the post
editing screen (under the HTML tab) the <p> and <br /> tags are removed
(this may not be immediately apparent but switch between visual and HTML
tabs and you'll see they are).

Is it possible to prevent the removal of <p> tags in the post editing screen
(under the HTML tab) but not in the_content?

Thanks again.


More information about the wp-hackers mailing list