Skip to content

Instantly share code, notes, and snippets.

@antun
Last active July 15, 2022 22:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antun/4964140 to your computer and use it in GitHub Desktop.
Save antun/4964140 to your computer and use it in GitHub Desktop.
XML unescapes a string
#!/usr/bin/env python
import sys, xml.sax.saxutils
if __name__ == '__main__':
args = sys.argv[1:]
for arg in args:
print xml.sax.saxutils.unescape( arg )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment