Fixed problem when message is false (i think)
bzr revid: nicolas.vanhoren@openerp.com-20120814094401-uv548xbylkfq8bun
This commit is contained in:
parent
bb09f83ec8
commit
f111a51f10
|
@ -3,6 +3,8 @@ from pyquery import PyQuery as pq
|
||||||
import re
|
import re
|
||||||
|
|
||||||
def html_sanitize(x):
|
def html_sanitize(x):
|
||||||
|
if not x:
|
||||||
|
return x
|
||||||
root = pq("<div />")
|
root = pq("<div />")
|
||||||
root.html(x)
|
root.html(x)
|
||||||
result = handle_element(root[0])
|
result = handle_element(root[0])
|
||||||
|
|
Loading…
Reference in New Issue