In [4]: quotequail.unwrap_html("Test 2.<br><br>On Jun 05, 2018, at 09:56 AM, John Doe <john@example.com> wrote:<br><blockquote><img src=\"https://example.com\" class=\"fr-fic fr-dib\"><br>Some text 1.<br><br>Bart</blockquote>")
Out[4]:
{'date': 'Jun 05, 2018, at 09:56 AM',
'from': 'John Doe <john@example.com>',
'html': u'<div>Some text 1.<br><br>Bart</div>',
'html_top': u'Test 2.',
'type': 'reply'}