mailgun / talon

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HTML Quote extraction appears to not be working

Mikejonesab12 opened this issue · comments

I performed the demos of both the regular text extraction and the HTML extraction found on the README. The text extraction worked as expected. However, the HTML extraction simply returned the original input.

I am using Python 3.6.1.

Any ideas?

@Mikejonesab12 I couldn't reproduce, could you provide a code snippet?

The code which is almost exactly from the README:

import talon
from talon import quotations

talon.init()

html = """Reply
<blockquote>

  <div>
    On 11-Apr-2011, at 6:54 PM, Bob &lt;bob@example.com&gt; wrote:
  </div>

  <div>
    Quote
  </div>

</blockquote>"""

#reply = quotations.extract_from(html, 'text/html')
reply = quotations.extract_from_html(html)
print(reply)

Printed output:

Reply
<blockquote>

  <div>
    On 11-Apr-2011, at 6:54 PM, Bob &lt;bob@example.com&gt; wrote:
  </div>

  <div>
    Quote
  </div>

</blockquote>

I have same problem, not working HTML quote (gmail_quote)