Microformats Parser (PHP) v0.5.0
HTML
<div class="h-entry"> <span class="p-name">This will parse since it's mf2 property inside mf2 root</span> <span class="entry-title">This will be ignored since it's mf1 property inside mf2 root</span> <div class="hentry"> <h1 class="entry-title">Post title</h1> <div class="entry-content"><p>My post!</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": [ "This will parse since it's mf2 property inside mf2 root" ] }, "children": [ { "type": [ "h-entry" ], "properties": { "name": [ "Post title" ], "content": [ { "html": "<p>My post!</p>", "value": "My post!" } ] } } ] } ], "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