commit 240494c

default  ·  2022-11-18 10:32:05 +0000 UTC
parent c827b26
More RSS cropping.
1 files changed,  +1, -1
M html.c
M html.c
+1, -1
1@@ -1124,7 +1124,7 @@ int html_get_handler(d_char *req, char *q_path, char **body, int *b_size, char *
2             content = xs_replace_i(content, ">", ">");
3 
4             /* cut title in the first tag start */
5-            if ((v = strchr(title, '<')) != NULL)
6+            if ((v = strchr(title, '&')) || (v = strchr(title, '<')))
7                 *v = '\0';
8 
9             if (strlen(title) > 40) {