Get your own customer support community
 

Why does Tumblr strip p tags from posts?

I noticed that Tumblr strips <p> tags from posts, but only when it's the only paragraph in the post. For example, if I post a link and I put this in the description:

<p>This is the description of my link.</p>



It gets rendered in my template without the <p> tags.

But if there's more than one paragraph, or if there are any other block-level elements in the post, then none of them get stripped out.

Why does it do this? It's annoying me a bit because I can't make my template and my posts look just the way I want. If I put the <p> tags myself in the template, like this:

            {block:Description}

<p>{Description}</p>
{/block:Description}


Then I would end up with stuff nested inside that <p> tag if I wrote a post with more than one paragraph. If I don't put the <p> tag in the template, I end up with unstyled text when the post is just one paragraph.

It would be nice if the template rendered my text exactly as I wrote it, without stripping any tags.
 
sad I’m frustrated
Inappropriate?
3 people have this question

User_default_medium