summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--html.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/html.c b/html.c
index 1e7a88db..d4f2a057 100644
--- a/html.c
+++ b/html.c
@@ -330,7 +330,7 @@ print_encode(struct html *h, const char *p, int norecurse)
int c, len, nospace;
const char *seq;
enum mandoc_esc esc;
- static const char rejs[8] = { '\\', '<', '>', '&',
+ static const char rejs[9] = { '\\', '<', '>', '&', '"',
ASCII_NBRSP, ASCII_HYPH, ASCII_BREAK, '\0' };
nospace = 0;
@@ -360,6 +360,9 @@ print_encode(struct html *h, const char *p, int norecurse)
case '&':
printf("&amp;");
continue;
+ case '"':
+ printf("&quot;");
+ continue;
case ASCII_NBRSP:
putchar('-');
continue;