Is there any way to keep it from escaping '>' (greater than) in a string?
-
The ‘>’ in the “Usage” string is being converted to the HTML escape code (&\gt;).
import sys import json if len(sys.argv) != 2: print 'Usage: jsonminify.py infile > outfile' else: fname = sys.argv[1] with open(fname,'r') as f: data = json.load(f) print json.dumps(data)
https://www.ads-software.com/extend/plugins/wp-code-highlight/
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Is there any way to keep it from escaping '>' (greater than) in a string?’ is closed to new replies.