mirror of
https://github.com/python/cpython.git
synced 2026-04-05 03:21:05 +00:00
tabs, newlines and crs are valid XML characters.
(backport from rev. 56551)
This commit is contained in:
parent
088277f290
commit
77dff905ba
1 changed files with 2 additions and 1 deletions
|
|
@ -91,7 +91,8 @@ When passing strings, characters special to XML such as \samp{<},
|
|||
\samp{>}, and \samp{\&} will be automatically escaped. However, it's
|
||||
the caller's responsibility to ensure that the string is free of
|
||||
characters that aren't allowed in XML, such as the control characters
|
||||
with ASCII values between 0 and 31; failing to do this will result in
|
||||
with ASCII values between 0 and 31 (except, of course, tab, newline and
|
||||
carriage return); failing to do this will result in
|
||||
an XML-RPC request that isn't well-formed XML. If you have to pass
|
||||
arbitrary strings via XML-RPC, use the \class{Binary} wrapper class
|
||||
described below.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue