also escape '>', to closer match Apple's plist output

This commit is contained in:
Just van Rossum 2004-10-26 10:11:00 +00:00
parent 337614993e
commit 8b8decea21

View file

@ -208,6 +208,7 @@ def _escapeAndEncode(text):
text = text.replace("\r", "\n") # convert Mac line endings
text = text.replace("&", "&") # escape '&'
text = text.replace("<", "&lt;") # escape '<'
text = text.replace(">", "&gt;") # escape '>'
text = _controlStripper.sub("?", text) # replace control chars with '?'
return text.encode("utf-8") # encode as UTF-8