Welcome! » Log In » Create A New Profile

Auto Paragraph for two a more line breaked text by mixed <br> and \n

Posted by 178 
178
Auto Paragraph for two a more line breaked text by mixed <br> and \n
July 20, 2011 05:20AM

AutoFormat.AutoParagraph works great for:

Lorem P1

Ipsum P2

What about this:

Lorem P1<br><br>
Ipsum P2<br>
<br><br>
Sed P3

I want to format this to:

<p>Lorem P1</p>
<p>Ipsum P2</p>
<p>Sed P3</p>

Similar to wordpress's wpautop() function. Is it possible? If not, I want see this feature in future releases.

Re: Auto Paragraph for two a more line breaked text by mixed <br> and \n
July 24, 2011 10:24PM

Not supported in current HTML Purifier, and might be a bit tricky to implement. Feature request duly noted, though it probably won't be for a while.

Re: Auto Paragraph for two a more line breaked text by mixed <br> and \n
December 26, 2011 01:05AM

I'm probably not going to implement this unless someone submits a patch. Note that you can approximate this behavior if you search replace double br's with double-newlines, before running through HTML Purifier.

Sorry, you do not have permission to post/reply in this forum.