Possible Duplicate:
Get content within a html tag using php and replace it after processing
I want replace
<a href="#" alt="" title="" class=""....>blalablabla</a>
with: blalablabla
Possible Duplicate:
Get content within a html tag using php and replace it after processing
I want replace
<a href="#" alt="" title="" class=""....>blalablabla</a>
with: blalablabla
You should use strip_tags()
funciton
http://php.net/manual/en/function.strip-tags.php
Here is the example.
$sHTML = '<a href="#" alt="" title="" class=""....>blalablabla</a>';
$sStripped = strip_tags($sHTML);
echo $sStripped; // should echo "blalablabla"