# TODO: just work on the tree and let lxml handle escaping.
e = etree.Element("x")
e.text = text
# This whole mixing text with ML is so wrong.
output = etree.tostring(e, encoding=unicode)[3:-4]
# TODO: just work on the tree and let lxml handle escaping.
e = etree.Element("x")
e.text = text
# This whole mixing text with ML is so wrong.
output = etree.tostring(e, encoding=unicode)[3:-4]