Posted by Christoph Burschka on 12/10/06 19:57
Bob wrote:
> The TitleField in my DB reads:
>
> Some title <span class=BoldRed>*</span>
>
> This shows up correctly, with the asterisk in the correct format, when
> shown on the web.
>
> I also want to show this field without any of the formatting; i.e.
>
> Some title *
>
> I've tried:
> $notags = stripslashes($row['title']);
>
> and also
>
> $notags = htmlspecialchars($row['title']);
>
> but still get the tag info. How can I get rid of it?
>
The function you're looking for is striptags().
--
CB
Navigation:
[Reply to this message]
|