summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Pamment <apamment@yandex.com>2019-05-13 13:33:43 +1000
committerAndrew Pamment <apamment@yandex.com>2019-05-13 13:33:43 +1000
commit1ffba0dbd20405f7eb51a632db0b8955225a214c (patch)
tree9a18794cb005c0d7b602f84dbc392c9826981827
parent28e33af1547bde3b55fddec5f6cb0687bfaf1902 (diff)
Escape Quotes
-rw-r--r--src/www_tree.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/www_tree.c b/src/www_tree.c
index 725a520..4db4d51 100644
--- a/src/www_tree.c
+++ b/src/www_tree.c
@@ -8,6 +8,9 @@ static char *www_tag_sanatize(char *data, int isdata) {
stralloc str = EMPTY_STRALLOC;
for (char *p = data; *p != '\0'; ++p) {
switch (*p) {
+ case '\"':
+ stralloc_cats(&str, "&quot;");
+ break;
case '&':
stralloc_cats(&str, "&amp;");
break;