Microformats Parser (PHP) dev-master
HTML
<div class="h-entry"> <!-- value should be parsed as u-* --> Liked <article class="u-photo h-cite"> <img class="u-photo" src="http://example.com/foobar" alt="this is alt" /> </article> </div>
Base URL
Save HTML?
(Note: Data older than 72 hours may be purged)
Render HTML in page?
JSON
{ "items": [ { "type": [ "h-entry" ], "properties": { "photo": [ { "type": [ "h-cite" ], "properties": { "photo": [ "http://example.com/foobar" ], "name": [ "this is alt" ] }, "value": "this is alt" } ] } } ], "rels": {}, "rel-urls": {}, "debug": { "package": "https://packagist.org/packages/mf2/mf2", "version": "dev-master", "note": [ "This output was generated from the php-mf2 library available at https://github.com/indieweb/php-mf2", "Using the masterminds/html5 HTML parser", "Please file any issues with the parser at https://github.com/indieweb/php-mf2/issues" ] } }
Parse