Differences From Artifact [0113b63029]:
- File src/OFString+XMLEscaping.m — part of check-in [5085342127] at 2011-04-23 17:52:36 on branch trunk — More style improvements. (user: js, size: 2195) [annotate] [blame] [check-ins using]
To Artifact [bd18e10f31]:
- File
src/OFString+XMLEscaping.m
— part of check-in
[f5f074e27e]
at
2011-06-04 16:30:57
on branch trunk
— Also escape \r in -[stringByXMLEscaping].
This is the only way the \r does not get lost when parsing the XML! (user: js, size: 2261) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
63 64 65 66 67 68 69 70 71 72 73 74 75 76 | append = "'"; appendLen = 6; break; case '&': append = "&"; appendLen = 5; break; default: append = NULL; appendLen = 0; } if (append != NULL) { char *newRetCString; | > > > > | 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | append = "'"; appendLen = 6; break; case '&': append = "&"; appendLen = 5; break; case '\r': append = "
"; appendLen = 5; break; default: append = NULL; appendLen = 0; } if (append != NULL) { char *newRetCString; |
︙ | ︙ |