June 1, 2011
8:06 p.m.
hi there, i'm quite confused cause putting and & into the text field of an element causes the & to be converted to &? example:
from lxml import etree root = etree.Element('test') root.text = '&' print(etree.tostring(root)) b'<test>&</test>'
how would I turn that off? I suppose thats not a bug... its a feature ^^ btw. is there any way to disable lxml.html.parse(...) to convert my <number>; into the true unicode chars? i have: python3.2 from the ubuntu 11.04 repo lxml from the ubuntu 11.04 repo for python3 plan_rich