Have an account? Sign in
Login  Register  Facebook
how to extract content from an html element
Hi!
please i want to show just the content between <a></a> tag in my code
for exemple :
<a class="liensyn" href="/acteur-films-Timothy_Olyphant">Timothy Olyphant</a>
i wanna juste show this :
Timothy Olyphant
Started: September 19, 2011 Latest Activity: September 19, 2011 php html
1 Answer
its very very easy just use strip_tags()
$text = '<a class="liensyn" href="/acteur-films-Timothy_Olyphant">Timothy Olyphant</a>';
echo strip_tags($text);

Posted: MacOS
In: September 19, 2011

Your Answer

xDo you want to answer this question? Please login or create an account to post your answer