Skip to content

Instantly share code, notes, and snippets.

View yyaremenko's full-sized avatar
😎

Yaroslav Yaremenko yyaremenko

😎
View GitHub Profile
<?php
/**
* Attempts to parse given meta tag's content from given html;
* deals with 'standard' and Open Graph meta tags.
*
* Order of meta tag attributes could be swapped around e.g. can either be
* name="..." content="..."
* or
* content="..." name="..."