Re: [PHP] Re: Displaying HTML characters in real format

2007-07-12 Thread Richard Lynch
On Thu, July 12, 2007 6:08 pm, Dan wrote: > string htmlentities ( string $string [, int $quote_style [, string > $charset > [, bool $double_encode]]] ) > > This function is identical to htmlspecialchars() in all ways, except > with > htmlentities(), all characters which have HTML character entity >

[PHP] Re: Displaying HTML characters in real format

2007-07-12 Thread Dan
string htmlentities ( string $string [, int $quote_style [, string $charset [, bool $double_encode]]] ) This function is identical to htmlspecialchars() in all ways, except with htmlentities(), all characters which have HTML character entity equivalents are translated into these entities. Th

[PHP] Re: Displaying HTML characters in real format

2007-07-12 Thread Al
Best way to learn, and remember, things like this is to make a simple test page and see for yourself. 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