Extracting the text node of an XML element containing a double-escaped entety.
>>> import xml.etree.ElementTree as ETree | |
>>> ETree.fromstring("<test>&rdquo;</test>").text | |
'”' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
Most feed reader implementations won’t know to do that extra step at the end. Named HTML-entities are quite rare in XML, especially double escaped ones.