[wp-hackers] Making the HTML editor output HTML in full
Stephen Rider
wp-hackers at striderweb.com
Tue Apr 21 00:13:21 GMT 2009
On Apr 20, 2009, at 2:08 PM, Jake McMurchie wrote:
> When the user clicks the "HTML" tab of the rich-text editor in the
> post
> editing screen, I'd like he/she to see and be able to edit *all*
> relevant
> HTML, including <p>, </p> and <br /> tags where appropriate.
>
> Can anyone suggest the best way to go about this?
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.
More information about the wp-hackers
mailing list