We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aec44fa commit b4c11f5Copy full SHA for b4c11f5
zap2xml.py
@@ -1227,13 +1227,13 @@ def enc(strng):
1227
global options
1228
t = strng
1229
if "-E" not in options:
1230
- t = re.sub("&[^#]","&",t)
+ t = re.sub("&[^#]","& ",t)
1231
t = re.sub("\"",""",t)
1232
t = re.sub("\'","'",t)
1233
t = re.sub("<","<",t)
1234
t = re.sub(">",">",t)
1235
else:
1236
- if re.search("amp",options["-E"]): t = re.sub("&[^#]","&",t)
+ if re.search("amp",options["-E"]): t = re.sub("&[^#]","& ",t)
1237
if re.search("quot",options["-E"]): t = re.sub("\"",""",t)
1238
if re.search("apos",options["-E"]): t = re.sub("\'","'",t)
1239
if re.search("lt",options["-E"]): t = re.sub("<","<",t)
0 commit comments