How to parsing some html tags content and separate them by some sepecial chars like "|"?

0 replies
Hi,

I have a variable like:

$content = '
<i class="fa fa-hashtag" aria-hidden="true">
<a href="http://example.com/tag/digital_marketing">digital marketing</a>
</i>
<i class="fa fa-hashtag" aria-hidden="true">
<a href="http://example.com/tag/seo">seo</a>
</i>
<i class="fa fa-hashtag" aria-hidden="true">
<a href="http://example.com/tag/internet_marketing">internet marketing</a>
</i>';

how to extract the content of a tag like this

Thank You.
Kosmiktechnologies.com
#“|” #chars #content #html #parsing #separate #sepecial #tags
Avatar of Unregistered

Trending Topics