Microformats Parser (PHP) v0.5.0
HTML
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>Hello World</title> </head> <body> <span class="h-card"> <a class="u-url" rel="me" href="https://serious-rambunctious-raft.glitch.me/">Alice Foo</a> <img class="u-photo" width="64" src="https://external-content.duckduckgo.com/iu/?u=http%3A%2F%2Fi2.cdn.cnn.com%2Fcnnnext%2Fdam%2Fassets%2F130114152903-abc-schoolhouse-rock-just-a-bill-story-top.jpg&f=1&nofb=1&ipt=d1efaf73919084492f1a18c04ca88c228c63d97ca6a2e9341f979cc0f9c31370"/> </span> <article class="h-entry"> <a class="u-in-reply-to" rel="in-reply-to" href="https://webmention.rocks/test/2">@post</a>: Nice post! <a href="https://serious-rambunctious-raft.glitch.me/post/1234" class="u-url">permalink</a> <a href="https://serious-rambunctious-raft.glitch.me/" class="u-author"></a> </article> </body> </html>
Base URL
Save HTML?
(Note: Data older than 72 hours may be purged)
Render HTML in page?
JSON
{ "items": [ { "type": [ "h-card" ], "properties": { "url": [ "https://serious-rambunctious-raft.glitch.me/" ], "photo": [ "https://external-content.duckduckgo.com/iu/?u=http%3A%2F%2Fi2.cdn.cnn.com%2Fcnnnext%2Fdam%2Fassets%2F130114152903-abc-schoolhouse-rock-just-a-bill-story-top.jpg&f=1&nofb=1&ipt=d1efaf73919084492f1a18c04ca88c228c63d97ca6a2e9341f979cc0f9c31370" ], "name": [ "Alice Foo" ] } }, { "type": [ "h-entry" ], "properties": { "in-reply-to": [ "https://webmention.rocks/test/2" ], "url": [ "https://serious-rambunctious-raft.glitch.me/post/1234" ], "author": [ "https://serious-rambunctious-raft.glitch.me/" ], "name": [ "@post: Nice post! permalink" ] } } ], "rels": { "me": [ "https://serious-rambunctious-raft.glitch.me/" ], "in-reply-to": [ "https://webmention.rocks/test/2" ] }, "rel-urls": { "https://serious-rambunctious-raft.glitch.me/": { "text": "Alice Foo", "rels": [ "me" ] }, "https://webmention.rocks/test/2": { "text": "@post", "rels": [ "in-reply-to" ] } }, "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
Rendered HTML
Hello World
Alice Foo
@post
: Nice post!
permalink