I’m working with this Script which allows to display url content within the meta tag “description”. It uses php like this:
$tags = get_meta_tags($url);
And then call it like this:
<label class="desc">
<?php echo @$tags['description']; ?>
</label>
How can I modify this to get content(plain text) of p, div, id, class instead of meta tags?
No, you can’t modify this to get what you want, this function is for meta tags.
You could use DOM API instead.