[FIX] tools: html_email_clean: remove blockquote in any node, not just firs childs of root.
bzr revid: tde@openerp.com-20121107105031-xf0u71q3chx0chnv
This commit is contained in:
@@ -138,7 +138,7 @@ def html_email_clean(html):
|
||||
root = lxml.html.fromstring(html)
|
||||
|
||||
# 3. remove blockquotes
|
||||
quotes = [el for el in root.iterchildren(tag='blockquote')]
|
||||
quotes = [el for el in root.getiterator(tag='blockquote')]
|
||||
for node in quotes:
|
||||
node.getparent().remove(node)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user