Microformats Parser (PHP) v0.5.0
HTML
<html> <head> <title>Test</title> </head> <body class="h-entry"> <p class="e-content p-name">This is a photo post with an <code>img</code> tag inside the content. <img class="u-photo" src="http://target.example.com/photo.jpg" alt="a photo"></p> </body> </html>
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 is a photo post with an img tag inside the content. a photo" ], "photo": [ { "value": "http://target.example.com/photo.jpg", "alt": "a photo" } ], "content": [ { "html": "This is a photo post with an <code>img</code> tag inside the content. <img class=\"u-photo\" src=\"http://target.example.com/photo.jpg\" alt=\"a photo\">", "value": "This is a photo post with an img tag inside the content. a photo" } ] } } ], "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