Re: replace special chars
| From: | John W. Holmes | Date: | Wed, 05 Nov 2003 15:15:17 +0000 |
| Subject: | Re: replace special chars | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-168570@lists.php.net to get a copy of this message | ||
Victor Spång Arthursson wrote:
Are there any good function to replace special characters, for example double qoutes, with something that are more html-safe?If only the PHP gods would bless us with a function such as htmlspecialchars() or maybe even htmlentities()... what a great world it would be... ;) Take a look at the manual pages and they convert different character sets and handle quotes differently based upon the second parameter. http://us2.php.net/htmlentities http://us2.php.net/htmlspecialchars -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com