about summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--template.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/template.c b/template.c
index fed3202..8653769 100644
--- a/template.c
+++ b/template.c
@@ -53,7 +53,7 @@ int escapeURL(FILE *file, const char *str) {
 
 int escapeXML(FILE *file, const char *str) {
 	while (*str) {
-		size_t len = strcspn(str, "\"&<>");
+		size_t len = strcspn(str, "\"&<");
 		if (len) {
 			size_t n = fwrite(str, len, 1, file);
 			if (!n) return -1;
@@ -64,7 +64,6 @@ int escapeXML(FILE *file, const char *str) {
 			break; case '"': str++; n = fprintf(file, "&quot;");
 			break; case '&': str++; n = fprintf(file, "&amp;");
 			break; case '<': str++; n = fprintf(file, "&lt;");
-			break; case '>': str++; n = fprintf(file, "&gt;");
 		}
 		if (n < 0) return n;
 	}