summary refs log tree commit diff
path: root/template.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-04-13 14:55:25 -0400
committerJune McEnroe <june@causal.agency>2020-04-13 14:55:25 -0400
commit4118711f3eb931b562df0914e1e2f8c49475b875 (patch)
treea08405152b05b2352b888bd0e3c2b506a24b8cd3 /template.c
parentClean up atom rendering (diff)
downloadbubger-4118711f3eb931b562df0914e1e2f8c49475b875.tar.gz
bubger-4118711f3eb931b562df0914e1e2f8c49475b875.zip
Do not escape > in XML/HTML
Diffstat (limited to 'template.c')
-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;
 	}
2021-01-12Remove hacky tagging from hilexJune McEnroe 2021-01-12Add htagml -iJune McEnroe 2021-01-12Render tag index in HTMLJune McEnroe 2021-01-12Add htagml -xJune McEnroe 2021-01-12Prevent matching the same tag twiceJune McEnroe 2021-01-12Process htagml file line by lineJune McEnroe 2021-01-12Split fields by tab onlyJune McEnroe 2021-01-12List both Makefile and html.sh under README.7June McEnroe 2021-01-12Add htagml exampleJune McEnroe 2021-01-12Use mandoc and htagml for bin htmlJune McEnroe 2021-01-12Add htagmlJune McEnroe 2021-01-12Replace causal.agency with a simple mdoc pageJune McEnroe 2021-01-11Publish "Using vi"June McEnroe 2021-01-11Enable diff.colorMovedJune McEnroe 2021-01-10Set less search case-insensitiveJune McEnroe 2021-01-10Set EXINITJune McEnroe 2021-01-09Add c -t flag to print expression typeJune McEnroe 2021-01-05Update taglineJune McEnroe