Re: [PHP] Displaying HTML characters in real format

2007-07-20 Thread Nisse Engström
On Tue, 17 Jul 2007 17:59:01 -0500 (CDT), Richard Lynch wrote: On Tue, July 17, 2007 2:03 pm, Nisse Engström wrote: On Fri, 13 Jul 2007 01:24:09 -0500 (CDT), Richard Lynch wrote: htmlspecialchars ONLY escapes four characters: htmlentities escapes ALL characters that need it What

Re: [PHP] Displaying HTML characters in real format

2007-07-17 Thread Nisse Engström
On Fri, 13 Jul 2007 01:24:09 -0500 (CDT), Richard Lynch wrote: htmlspecialchars ONLY escapes four characters: htmlentities escapes ALL characters that need it What characters other than the four (or five) NEED escaping, and why? /Nisse -- PHP General Mailing List

Re: [PHP] Displaying HTML characters in real format

2007-07-17 Thread Satyam
the characters handled by htmlspecialchars. I just prefer to set the character encoding compatible from end to end. Satyam - Original Message - From: Nisse Engström [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Tuesday, July 17, 2007 9:03 PM Subject: Re: [PHP] Displaying HTML

Re: [PHP] Displaying HTML characters in real format

2007-07-17 Thread Richard Lynch
On Tue, July 17, 2007 2:03 pm, Nisse Engström wrote: On Fri, 13 Jul 2007 01:24:09 -0500 (CDT), Richard Lynch wrote: htmlspecialchars ONLY escapes four characters: htmlentities escapes ALL characters that need it What characters other than the four (or five) NEED escaping, and why?

Re: [PHP] Displaying HTML characters in real format

2007-07-13 Thread Richard Lynch
On Thu, July 12, 2007 12:37 pm, Don Don wrote: Am kind of confused between htmlspecialchars and htmlentities. I've got data i need to display data on a page containing e.g. quot; but will like it to be displayed as htmlspecialchars or htmlentities or page character set ? htmlspecialchars

[PHP] Displaying HTML characters in real format

2007-07-12 Thread Don Don
Hi all, Am kind of confused between htmlspecialchars and htmlentities. I've got data i need to display data on a page containing e.g. quot; but will like it to be displayed as htmlspecialchars or htmlentities or page character set ? Cheers - Take

Re: [PHP] Displaying HTML characters in real format

2007-07-12 Thread Jim Lucas
Don Don wrote: Hi all, Am kind of confused between htmlspecialchars and htmlentities. I've got data i need to display data on a page containing e.g. quot; but will like it to be displayed as htmlspecialchars or htmlentities or page character set ? Cheers