Re: htmlentities()
| From: | Paul Birnstihl | Date: | Wed, 08 Sep 2004 23:23:01 +0000 |
| Subject: | Re: htmlentities() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-196185@lists.php.net to get a copy of this message | ||
Anthony Ritter wrote:
<?php $str = "A 'quote' is <b>bold</b>"; echo htmlentities($str); ?> .............. // outputs: A 'quote' is <b>bold</b> Not sure why the I am still getting the tags and spaces after the call to htmlentities().Check out the source code of the output. Maybe you want the strip_tags() function ?