diff options
| author | 2016-11-13 01:22:19 +0100 | |
|---|---|---|
| committer | 2016-11-13 01:22:19 +0100 | |
| commit | 3a92084e80a65631a0c654943d9d20c1ebd88634 (patch) | |
| tree | 95e2d901110cabb2fef12fc8caa0558fe3a555e5 /src/xplist.c | |
| parent | eb7078be709b46eaa07792b677c33f64aea66d3a (diff) | |
| download | libplist-3a92084e80a65631a0c654943d9d20c1ebd88634.tar.gz libplist-3a92084e80a65631a0c654943d9d20c1ebd88634.tar.bz2 | |
xplist: Don't escape " and ' characters in node_to_xml
Diffstat (limited to 'src/xplist.c')
| -rw-r--r-- | src/xplist.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/xplist.c b/src/xplist.c index 4438236..91b4645 100644 --- a/src/xplist.c +++ b/src/xplist.c | |||
| @@ -243,16 +243,6 @@ static void node_to_xml(node_t* node, bytearray_t **outbuf, uint32_t depth) | |||
| 243 | str_buf_append(*outbuf, ">", 4); | 243 | str_buf_append(*outbuf, ">", 4); |
| 244 | start = cur+1; | 244 | start = cur+1; |
| 245 | break; | 245 | break; |
| 246 | case '\'': | ||
| 247 | str_buf_append(*outbuf, node_data->strval + start, cur - start); | ||
| 248 | str_buf_append(*outbuf, "'", 6); | ||
| 249 | start = cur+1; | ||
| 250 | break; | ||
| 251 | case '"': | ||
| 252 | str_buf_append(*outbuf, node_data->strval + start, cur - start); | ||
| 253 | str_buf_append(*outbuf, """, 6); | ||
| 254 | start = cur+1; | ||
| 255 | break; | ||
| 256 | case '&': | 246 | case '&': |
| 257 | str_buf_append(*outbuf, node_data->strval + start, cur - start); | 247 | str_buf_append(*outbuf, node_data->strval + start, cur - start); |
| 258 | str_buf_append(*outbuf, "&", 5); | 248 | str_buf_append(*outbuf, "&", 5); |
