Microformats Parser (PHP) dev-master
HTML
<article class="h-entry"> <header> <h1 class="p-name">article abc</h1> </header> <div class="e-content">foo bar</div> <footer> <a class="u-url" href="http://example.com/abc">Permalink</a> </footer> <a class="p-like h-cite u-url" href="http://example.com/abc"> <img class="u-photo" src="https://placeimg.com/100/100/people" alt="Liked by Unknown" /> </a> <a class="p-like h-cite u-url" href="http://example.com/anonymous/like"> <img class="u-photo" src="https://placeimg.com/100/100/people" alt="Liked by Unknown" /> </a> </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": [ "article abc" ], "url": [ "http://example.com/abc", { "type": [ "h-cite" ], "properties": { "photo": [ "https://placeimg.com/100/100/people" ], "name": [ "Liked by Unknown" ], "url": [ "http://example.com/abc" ] }, "value": "http://example.com/abc" }, { "type": [ "h-cite" ], "properties": { "photo": [ "https://placeimg.com/100/100/people" ], "name": [ "Liked by Unknown" ], "url": [ "http://example.com/anonymous/like" ] }, "value": "http://example.com/anonymous/like" } ], "content": [ { "html": "foo bar", "value": "foo bar" } ], "like": [ { "type": [ "h-cite" ], "properties": { "photo": [ "https://placeimg.com/100/100/people" ], "name": [ "Liked by Unknown" ], "url": [ "http://example.com/abc" ] }, "value": "Liked by Unknown" }, { "type": [ "h-cite" ], "properties": { "photo": [ "https://placeimg.com/100/100/people" ], "name": [ "Liked by Unknown" ], "url": [ "http://example.com/anonymous/like" ] }, "value": "Liked by Unknown" } ] } } ], "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