Microformats Parser (PHP) v0.5.0
HTML
<div class="note h-entry"> <div class="reply-context"> <p class="p-in-reply-to h-cite"> <em>In reply to a <a href="https://aaronparecki.com/2016/10/20/6/private-webmentions-in-p3k" class="u-name u-url">post on aaronparecki.com</a>:</em> </p> </div> <div class="p-name e-content"> <p>This comment is top secret!</p> </div> <p class="post-meta align-right"> <time class="dt-published" datetime="2016-10-20T12:56:00-07:00" title="October 20, 2016 12:56pm PDT"><a href="/2016/10/this-comment-is-top-secret/" class="u-url">October 20, 2016</a></time> </p><p class="post-meta align-right p-author h-card"> <span class="p-name">gRegor Morrill</span> <a href="https://gregorlove.com/" class="u-url"><img src="/site/assets/files/3473/profile-2016-med.jpg" class="u-photo" style="height:1.2em; vertical-align: text-bottom;" alt=""></a> </p> <div class="responses"> </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 comment is top secret!" ], "url": [ "/2016/10/this-comment-is-top-secret/" ], "published": [ "2016-10-20T12:56:00-07:00" ], "content": [ { "html": "<p>This comment is top secret!</p>", "value": "This comment is top secret!" } ], "in-reply-to": [ { "type": [ "h-cite" ], "properties": { "name": [ "https://aaronparecki.com/2016/10/20/6/private-webmentions-in-p3k" ], "url": [ "https://aaronparecki.com/2016/10/20/6/private-webmentions-in-p3k" ] }, "value": "https://aaronparecki.com/2016/10/20/6/private-webmentions-in-p3k" } ], "author": [ { "type": [ "h-card" ], "properties": { "name": [ "gRegor Morrill" ], "url": [ "https://gregorlove.com/" ], "photo": [ { "value": "/site/assets/files/3473/profile-2016-med.jpg", "alt": "" } ] }, "value": "gRegor Morrill" } ] } } ], "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