On Sun, 2002-07-28 at 04:04, Justin French wrote:
> I *think* you've got a typo -- you've said ln2br instead of nl2br i think.

Doh!  You got that right.

> Aaaannny way, you can't modify WHAT php does in nl2br, but you can do
> something to the resulting code, like replacing "</li><br />" with "</li>":
> 
> <?
> $original = "<ul><li>Blar</li></ul>";
> $new = nl2br($original);
> $new = str_replace('</li><br />', '</li>', $new);
> ?>

Hmmm..you've got it backwards, but I see what you mean.  I'll tool
around with it tonight.

Thanks for the suggestion.

Kevin
-- 
Kevin Breit <[EMAIL PROTECTED]>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to