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
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 1 of 1 people found this answer helpful. Did you? Yes No |
© Advanced Web Core. All rights reserved