Issue 4515, skip all control char in XML output except 09, 0A, 0D.
svn: r16336
This commit is contained in:
parent
51f2e26218
commit
4593c5f53f
@ -79,8 +79,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