about summary refs log tree commit diff
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
parentClean up atom rendering (diff)
downloadbubger-4118711f3eb931b562df0914e1e2f8c49475b875.tar.gz
bubger-4118711f3eb931b562df0914e1e2f8c49475b875.zip
Do not escape > in XML/HTML
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;
 	}
02-22Disable terminal flow controlJune McEnroe This opens up C-o, C-q and C-s for key bindings without C-v. 2019-02-22Bind up and down arrows to scrollJune McEnroe Honestly it's kind of weird that IRC clients usually use these for input history. 2019-02-22Remove topic TODOJune McEnroe I played around with it and it doesn't look right unless there is only one channel listed in the status. 2019-02-22Add /znc commandJune McEnroe Only because ZNC tells you to use it and expects it to work. 2019-02-22Update status line after scrolling and term eventsJune McEnroe 2019-02-22Reorganize input.cJune McEnroe 2019-02-22Fix name of <raw> window in man pageJune McEnroe 2019-02-22Rename global tags with angle bracketsJune McEnroe 2019-02-22Show status window while connectingJune McEnroe 2019-02-22Reorganize UI code for the umpteenth timeJune McEnroe It's actually in a good state now, I think. 2019-02-21Replace "view" with "window"June McEnroe I think originally I didn't want to use the same word as curses WINDOW but it's really much clearer for the user if they're just called windows. UI code probably needs yet another rewrite though. Still feels messy. 2019-02-21Remove ROT13June McEnroe It's just not convenient when it can only do the whole line... 2019-02-21Clean up man pageJune McEnroe 2019-01-26Draw UI before connectingJune McEnroe Otherwise the "Traveling" message isn't visible while connecting. 2019-01-25Avoid unused variable warnings with getyxJune McEnroe 2019-01-25Add GNU/Linux build instructionsJune McEnroe