Re: ECHO $variable
| From: | benifactor | Date: | Wed, 11 Oct 2006 21:13:10 +0000 |
| Subject: | Re: ECHO $variable | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-242941@lists.php.net to get a copy of this message | ||
thank you for schooling me :) i learn something new everyday!
----- Original Message -----
From: "Richard Lynch" <ceo@l-i-e.com>
To: "benifactor" <snorris17@cox.net>
Cc: <php-general@lists.php.net>
Sent: Monday, October 09, 2006 11:02 AM
Subject: Re: [PHP] ECHO $variable
> On Mon, October 9, 2006 7:45 am, benifactor wrote:
> > the way i posted worked fine with out either... he doesn't need to use
> > these
> > to format the way his output is displayed, he only needs to use the
> > proper
> > php syntax if i am correct.
>
> You were wrong, and you're still wrong. :-)
>
> Try it and see.
>
> http://php.net/htmlentities is the correct solution.
>
> htmlspecialchars only catches a tiny subset of what *might* be in the
> string... So it will work if you can guarantee that only those
> limited set of chars will ever be in there.
>
> --
> Some people have a "gift" link here.
> Know what I want?
> I want you to buy a CD from some starving artist.
> http://cdbaby.com/browse/from/lynch
> Yeah, I get a buck. So?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>