问题
so php's get_meta_tags would fetch the meta tags that has a name field to it but sometimes there are meta tags that has no fields but uses property="" as identifier instead and this function is not fetching it....
is there any better way to get meta tags including those with property="" identifiers in php?
回答1:
Parse the XML or HTML yourself with DOM's loadHTML and run an xpath on it.
来源:https://stackoverflow.com/questions/4894068/php-get-meta-tags-not-fetching-property-ogtype-tags