Issue 4515, skip all control char in XML output except 09, 0A, 0D.
svn: r16337
This commit is contained in:
parent
dcca22245c
commit
2acc96fa62
@ -77,8 +77,8 @@ try:
|
|||||||
except:
|
except:
|
||||||
_gzip_ok = 0
|
_gzip_ok = 0
|
||||||
|
|
||||||
# table for skipping control chars from XML
|
# table for skipping control chars from XML except 09, 0A, 0D
|
||||||
strip_dict = dict.fromkeys(range(9)+range(12,20))
|
strip_dict = dict.fromkeys(range(9)+range(11,13)+range(14, 32))
|
||||||
|
|
||||||
def escxml(d):
|
def escxml(d):
|
||||||
return escape(d,
|
return escape(d,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user