|
Posted by artev on 11/13/07 16:54
Il Tue, 13 Nov 2007 16:49:00 +0100, Thomas Mlynarczyk ha scritto:
> Also sprach artev:
>
> To get just the text inside an <a> element, you can try something like this
> (untested):
>
> preg_match( '°\<a\s+[^>]+\>(.*?)\</a\>°', $text, $matches )
> $matches[1] will then contain the text.
work, thanks;
so this is the code for to extract from a link the text?
is a standard code or you have make for yourself ?
> But if you want to remove all HTML, have a look at PHP's strip_tags()
> function.
>
> Greetings,
> Thomas
Navigation:
[Reply to this message]
|