Microformats Parser (PHP) v0.5.0
HTML
<div class="h-entry"> <h2 class="p-name">The Album Name</h2> <div class="e-content"> <div class="h-entry"> <img src="photo1.jpg" class="u-photo"> <p class="e-content">Photo 1 description</p> </div> <div class="h-entry"> <img src="photo2.jpg" class="u-photo"> <p class="e-content">Photo 2 description</p> </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": [ "The Album Name" ], "content": [ { "html": "<div class=\"h-entry\">\n <img src=\"photo1.jpg\" class=\"u-photo\">\n <p class=\"e-content\">Photo 1 description</p>\n </div>\n\n <div class=\"h-entry\">\n <img src=\"photo2.jpg\" class=\"u-photo\">\n <p class=\"e-content\">Photo 2 description</p>\n </div>", "value": "photo1.jpg\nPhoto 1 description photo2.jpg\nPhoto 2 description" } ] }, "children": [ { "type": [ "h-entry" ], "properties": { "photo": [ "photo1.jpg" ], "content": [ { "html": "Photo 1 description", "value": "Photo 1 description" } ] } }, { "type": [ "h-entry" ], "properties": { "photo": [ "photo2.jpg" ], "content": [ { "html": "Photo 2 description", "value": "Photo 2 description" } ] } } ] } ], "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