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

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-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 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-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-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 ---

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

[PHP] Displaying HTML safely

2005-07-15 Thread Lauri Harpf
Hello, let's assume a PHP program that allows users to enter a web page address. After the address is entered, the program would fetch the page in question and replace all the occurrences of the word "llama" with the word "alpaca". It would then provide the modified HTML code in a safe fashion

[PHP] Displaying html

2001-12-17 Thread Steve Osborne
Does anyone know of an easy way to store html code in a mysql database, and then retreive it, in such a way that it can display the page as if it were a standard html page? Would using php be of benefit to me? Steve Osborne [EMAIL PROTECTED] * *(borrowed from Paul) -- PHP General Mailing Li