Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #52065 > unrolled thread
| Started by | andrea crotti <andrea.crotti.0@gmail.com> |
|---|---|
| First post | 2013-08-06 18:38 +0100 |
| Last post | 2013-08-06 18:38 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
lxml tostring quoting too much andrea crotti <andrea.crotti.0@gmail.com> - 2013-08-06 18:38 +0100
| From | andrea crotti <andrea.crotti.0@gmail.com> |
|---|---|
| Date | 2013-08-06 18:38 +0100 |
| Subject | lxml tostring quoting too much |
| Message-ID | <mailman.271.1375819811.1251.python-list@python.org> |
I would really like to do the following: from lxml import etree as ET from lxml.builder import E url = "http://something?x=10&y=20" l = E.link(url) ET.tostring(l) -> "<link>http://something?x=10&y=20</link>" However the lxml tostring always quotes the &, I can't find a way to tell it to avoid quoting it. Is it possible? Thanks
Back to top | Article view | comp.lang.python
csiph-web