Microformats Parser (PHP) dev-master
HTML
<html> <head> <title>Test</title> </head> <body> <div class="h-feed"> <a href="/author" class="p-author h-card">Author Name</a> <ul> <li class="h-entry"> <a href="/1" class="u-url p-name">One</a> </li> <li class="h-entry"> <a href="/2" class="u-url p-name">Two</a> </li> <li class="h-entry"> <a href="/3" class="u-url p-name">Three</a> </li> <li class="h-entry"> <a href="/4" class="u-url p-name">Four</a> </li> </ul> </div> </body> </html>
Base URL
Save HTML?
(Note: Data older than 72 hours may be purged)
Render HTML in page?
JSON
{ "items": [ { "type": [ "h-feed" ], "properties": { "author": [ { "type": [ "h-card" ], "properties": { "name": [ "Author Name" ], "url": [ "/author" ] }, "value": "Author Name" } ] }, "children": [ { "type": [ "h-entry" ], "properties": { "name": [ "One" ], "url": [ "/1" ] } }, { "type": [ "h-entry" ], "properties": { "name": [ "Two" ], "url": [ "/2" ] } }, { "type": [ "h-entry" ], "properties": { "name": [ "Three" ], "url": [ "/3" ] } }, { "type": [ "h-entry" ], "properties": { "name": [ "Four" ], "url": [ "/4" ] } } ] } ], "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