Microformats Parser (PHP) v0.5.0
HTML
<div class="h-entry"> <h1 class="p-name">Collection</h1> <div class="gallery"> <div class="h-cite"> <a class="u-url" href="https://urltophotopost.com"> <img src="https://image.com/thumbnail-image.jpg" alt="Child photo name" /> <data class="u-photo" value="https://image.com/full-image.jpg" /> </a> </div> </div> </div>
Base URL
Save HTML?
(Note: Data older than 72 hours may be purged)
Render HTML in page?
JSON
{ "items": [ { "type": [ "h-entry" ], "properties": { "name": [ "Collection" ] }, "children": [ { "type": [ "h-cite" ], "properties": { "url": [ "https://urltophotopost.com" ], "photo": [ "https://image.com/full-image.jpg" ], "name": [ "Child photo name" ] } } ] } ], "rels": {}, "rel-urls": {}, "debug": { "package": "https://packagist.org/packages/mf2/mf2", "source": "https://github.com/indieweb/php-mf2", "version": "v0.5.0", "note": [ "This output was generated from the php-mf2 library available at https://github.com/indieweb/php-mf2", "Please file any issues with the parser at https://github.com/indieweb/php-mf2/issues", "Using the Masterminds HTML5 parser" ] } }
Parse