removing empty paragraphs and limit <br />
Posted: Tue Oct 28, 2014 1:25 pm
Hi everyone,
I need a way to remove extra paragraphs and <br /> in a textarea.
it could appear as:
<br />
<p> </p>
<br />
<p> </p>
<p> </p>
or
<br />
<p> </p>
<p> </p>
<br />
and i need a way to remove all extra <br /> as i have seen this posting into the db as well:
<br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br />
I need a way to remove extra paragraphs and <br /> in a textarea.
it could appear as:
<br />
<p> </p>
<br />
<p> </p>
<p> </p>
or
<br />
<p> </p>
<p> </p>
<br />
and i need a way to remove all extra <br /> as i have seen this posting into the db as well:
<br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br />