Paragraph tags are stripped
-
I’m using the WP 2.0 and when I use the rich-text editor to create my post, I use the “enter” key to create new lines – thus creating multiple instances of the <p></p> tags. An example is:
<p>This is paragraph 1</p><p>This is paragraph 2</p><p>This is paragraph 3</p>
When I view the HTML for the entry before I publish it to my table it shows the above code. When I query the tables by hand in my WP database – the paragraph tags are stripped out and replaced with physical ASCII line breaks (which shouldn’t render as real line breaks in HTML). I know that WP uses a function called “wpautop” which somehow replaces the ASCII line breaks with actual paragraph tags when rendering it as HTML.
I’m using a custom-built template/theme and when it pulls the entry from the table – all the text is running to gether without the paragraph tags – thus screwing up my layout.
My question is this: Is there a way to get WP to not strip out the paragraph tags when it enters the entry into my table?
- The topic ‘Paragraph tags are stripped’ is closed to new replies.