On Sun, 2002-07-28 at 10:14, Justin French wrote:
> on 29/07/02 12:02 AM, Kevin Breit ([EMAIL PROTECTED]) wrote:
>
> >> Aaaannny way, you can't modify WHAT php does in nl2br, but you can do
> >> something to the resulting code, like replacing "" with "":
> >>
> >> >> $original = "Blar";
> >> $n
on 29/07/02 12:02 AM, Kevin Breit ([EMAIL PROTECTED]) wrote:
>> Aaaannny way, you can't modify WHAT php does in nl2br, but you can do
>> something to the resulting code, like replacing "" with "":
>>
>> > $original = "Blar";
>> $new = nl2br($original);
>> $new = str_replace('', '', $new);
>> ?>
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 "" with "":
>
> $or
on 28/07/02 12:53 PM, Jason Stechschulte ([EMAIL PROTECTED]) wrote:
> There might be an easier way, but you might just have to write your own
> code for this. Something along the lines of: (completely untested)
>
> $line = ereg_replace("(^li|^ul|^ol)>\n", "\n", $line);
> ?>
Definately an easi
I *think* you've got a typo -- you've said ln2br instead of nl2br i think.
Aaaannny way, you can't modify WHAT php does in nl2br, but you can do
something to the resulting code, like replacing "" with "":
Blar";
$new = nl2br($original);
$new = str_replace('', '', $new);
?>
Either that, or write
On Sat, Jul 27, 2002 at 08:08:34PM -0400, Kevin Breit wrote:
> Lets say I have
>
>
> Blar
>
>
> ln2br() will crunch that and put out:
>
> Blar
>
>
> 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?
There
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
Blar
ln2br() will crunch that and put out:
Blar
7 matches
Mail list logo