Commit 8b8decea authored by Just van Rossum's avatar Just van Rossum

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

parent 33761499
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment