Re: htmlentities()
| From: | Chris Shiflett | Date: | Wed, 08 Sep 2004 23:12:33 +0000 |
| Subject: | Re: htmlentities() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-196182@lists.php.net to get a copy of this message | ||
--- Anthony Ritter <tony@gonefishingguideservice.com> wrote:
> Copied and pasted the following sample script from the php manual
> and this outputs:
>
> ...........
> <?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().
View source, and I think you'll understand. Or, remove the call to
htmlentities().
Chris
=====
Chris Shiflett - http://shiflett.org/
PHP Security - O'Reilly
Coming Fall 2004
HTTP Developer's Handbook - Sams
http://httphandbook.org/
PHP Community Site
http://phpcommunity.org/