Microformats Parser (PHP) v0.5.0
HTML
<div class="h-entry" id="entry-1"> <a href="/#entry-1" class="u-url">permalink</a> <p class="e-content">Entry 1</p> </div> <div class="h-entry" id="entry-2"> <a href="/#entry-2" class="u-url">permalink</a> <p class="e-content">Entry 2</p> </div>
Base URL
Save HTML?
(Note: Data older than 72 hours may be purged)
Render HTML in page?
JSON
{ "items": [ { "type": [ "h-entry" ], "properties": { "url": [ "https://example.com/#entry-1" ], "content": [ { "html": "Entry 1", "value": "Entry 1" } ] }, "id": "entry-1" }, { "type": [ "h-entry" ], "properties": { "url": [ "https://example.com/#entry-2" ], "content": [ { "html": "Entry 2", "value": "Entry 2" } ] }, "id": "entry-2" } ], "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