Php get_meta_tags does not request property = og: type tags

so php get_meta_tags will retrieve meta tags that have a name field, but sometimes there are meta tags that don't have fields, but use the = "" property instead, and this function does not retrieve it ....

is there a better way to get meta tags, including those that have property = "" ids in php?

+3
source share
1 answer

Parse the XML or HTML yourself using the DOM loadHTML and run xpath on it.

0
source

Source: https://habr.com/ru/post/1789899/


All Articles