Posted by Stefan Rybacki on 07/13/05 12:11
Phil wrote:
> Philip Seeger wrote:
>
>
>>Hi everybody.
>>
>>Can anybody tell me how I can take all hyperlinks out of a string?
>>Example: I have a string like this: 'blah blah bubble <a
>>href="http://www.google.com/">googling's funny</a> bubble blah'.
>>And it should transformed to 'blah blah bubble googling's funny bubble
>>blah'.
>
>
> strip_tags()
>
While strip_tags() removes all html tags from a string this is perhaps not that what the
OP wants. I guess he is more looking for a regular expression like this:
/<a.*>|</a>/iu
Regards
Stefan
Navigation:
[Reply to this message]
|