summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b693bb3)
We already escape '<', '>', and '&'. This adds the remaining two special
entities in XML: '\'' and '\"'.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
case '&':
escape = "&";
break;
case '&':
escape = "&";
break;
+ case '\'':
+ escape = "'";
+ break;
+ case '\"':
+ escape = """;
+ break;
}
fwrite(text, (p - text - 1), 1, f);
if (!escape)
}
fwrite(text, (p - text - 1), 1, f);
if (!escape)