Re: ECHO $variable
| From: | Richard Lynch | Date: | Mon, 09 Oct 2006 18:02:42 +0000 |
| Subject: | Re: ECHO $variable | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-242859@lists.php.net to get a copy of this message | ||
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?