Re: Displaying HTML characters in real format
| From: | Jim Lucas | Date: | Thu, 12 Jul 2007 18:12:39 +0000 |
| Subject: | Re: Displaying HTML characters in real format | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-258729@lists.php.net to get a copy of this message | ||
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 ? CheersAre you saying that in the text that you want to have displayed, it has " instead of " or is it that you have a quot " and want to run htmlspecialchars() or htmlentities() on it? and then have it displayed as " and not "? which is it? -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Night, Act II, Scene V by William Shakespeare--------------------------------- Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more. a little confused with what you have to begin with.