Extra spacing with <br> in HTML
| From: | Kevin Breit | Date: | Sun, 28 Jul 2002 00:08:34 +0000 |
| Subject: | Extra spacing with <br> in HTML | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-110014@lists.php.net to get a copy of this message | ||
Hey guys,
I am using a textarea to pass information to PHP. I want to be able to
include HTML tags inside the text area. I am using ln2br() to properly
convert line breaks to HTML. This is where my issue comes up.
Lets say I have
<ul>
<li>Blar</li>
</ul>
ln2br() will crunch that and put out:
<ul><br />
<li>Blar</li><br />
</ul><br />
That creates a lot of white space when that HTML is rendered. How do I
tell PHP not to put line breaks in a situation like that?
Thanks!
--
Kevin Breit <mrproper@ximian.com>