mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
also escape '>', to closer match Apple's plist output
This commit is contained in:
parent
337614993e
commit
8b8decea21
1 changed files with 1 additions and 0 deletions
|
@ -208,6 +208,7 @@ def _escapeAndEncode(text):
|
|||
text = text.replace("\r", "\n") # convert Mac line endings
|
||||
text = text.replace("&", "&") # escape '&'
|
||||
text = text.replace("<", "<") # escape '<'
|
||||
text = text.replace(">", ">") # escape '>'
|
||||
text = _controlStripper.sub("?", text) # replace control chars with '?'
|
||||
return text.encode("utf-8") # encode as UTF-8
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue