> 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().
>
> Thank you for any help.
> TR
>

Sorry to spam you, but.... If you are wanting to remove html altogether take
a look at strip_tags()
http://us4.php.net/manual/en/function.strip-tags.php

Jim Grill

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to