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. " but will like it to be displayed as " htmlspecialchars or htmlentities or page character set ? Cheers ---

Re: [PHP] Displaying HTML characters in real format

2007-07-12 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. " but > will like it to be displayed as " > > htmlspecialchars or htmlentities or page character set ? htmlspecialchars

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 (http://ww

Re: [PHP] Displaying HTML characters in real format

2007-07-17 Thread Satyam
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: Sent: Tuesday, July 17, 2007 9:03 PM Subject: Re: [PHP] Displaying HTML ch

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 escap

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 th