Quote:
Originally Posted by sherman
Hi DiapDealer
This looks to be an amazing plugin.
Have you thought of making an addition to replace paragraphs formed using break tags to those using paragraph tags? Would this fit into the theme of the plugin? Would you be interested in implementing such a feature if it did fit?
Example of what I mean:
Code:
Turn this:
...
This is a paragraph...<br />
<br />
This is another paragraph.<br />
<br />
...
Into this:
<p>This is a paragraph...</p>
<p>This is another paragraph.</p>
Currently I use multiple fragile regex's, and hope I don't stuff it up...
Your thoughts?
|
IMHO Your
fragile REGEX is probably a more
robust REGEX because you tune it to your exact condition
<p> is simple
what if the first tag was a:
<div class="foo"> <span class="bar">
or
<p class="foo"> <span class="bar">
or the <br /> was inside another tag
<i>there she<br /> blows</i> (up

)