Microformats Parser (PHP) dev-master
HTML
<article class="h-entry"> <h1 class="p-name">My album</h1> <div class="p-photo h-entry"> <img class='u-photo' src="photo1.jpg"/> <p class="p-content">some caption</p> </div> <div class="p-photo h-entry"> <img class='u-photo' src="photo2.jpg"/> <p class="p-name">photo title</p> </div> </article>
Base URL
Save HTML?
(Note: Data older than 72 hours may be purged)
Render HTML in page?
JSON
{ "items": [ { "type": [ "h-entry" ], "properties": { "name": [ "My album" ], "photo": [ { "type": [ "h-entry" ], "properties": { "content": [ "some caption" ], "photo": [ "photo1.jpg" ] }, "value": "photo1.jpg\nsome caption" }, { "type": [ "h-entry" ], "properties": { "name": [ "photo title" ], "photo": [ "photo2.jpg" ] }, "value": "photo title" } ] } } ], "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