Microformats Parser (PHP) v0.5.0
HTML
<div class="h-entry"> <div class="p-itinerary h-leg"> <div><data class="p-origin" value="BNA">Nashville (BNA)</data> to <data class="p-destination" value="DTW">Detroit (DTW)</data></div> <div><time class="dt-start" datetime="2015-04-03T16:10:00-05:00">April 3, 2015 from 4:10pm (-500)</time> to <time class="dt-end" datetime="2015-04-03T18:48:00-04:00">6:48pm (-400)</time></div> <div><span class="p-airline">Delta</span> Flight <span class="p-flight">1699</span></div> </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": { "itinerary": [ { "type": [ "h-leg" ], "properties": { "origin": [ "BNA" ], "destination": [ "DTW" ], "airline": [ "Delta" ], "flight": [ "1699" ], "start": [ "2015-04-03T16:10:00-05:00" ], "end": [ "2015-04-03T18:48:00-04:00" ] }, "value": "Nashville (BNA) to Detroit (DTW) April 3, 2015 from 4:10pm (-500) to 6:48pm (-400) Delta Flight 1699" } ] } } ], "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
Rendered HTML
Nashville (BNA)
to
Detroit (DTW)
April 3, 2015 from 4:10pm (-500)
to
6:48pm (-400)
Delta
Flight
1699