Overview
Comment: | Also escape \r in -[stringByXMLEscaping].
This is the only way the \r does not get lost when parsing the XML! |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
f5f074e27e69f906ad9d8f9de79b31f9 |
User & Date: | js on 2011-06-04 16:30:57 |
Other Links: | manifest | tags |
Context
2011-06-04
| ||
16:37 | Add tests for OFSerialization. check-in: 591b598230 user: js tags: trunk | |
16:30 | Also escape \r in -[stringByXMLEscaping]. check-in: f5f074e27e user: js tags: trunk | |
16:07 | Add -[hash] to OFXMLElement and OFXMLAttribute. check-in: a698b98203 user: js tags: trunk | |
Changes
Modified src/OFString+XMLEscaping.m from [0113b63029] to [bd18e10f31].
︙ | ︙ | |||
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; |
︙ | ︙ |