diff --git a/html/html.c b/html/html.c index 12d6569..82f0b38 100755 --- a/html/html.c +++ b/html/html.c @@ -509,7 +509,7 @@ toc_header(struct buf *ob, const struct buf *text, int level, void *opaque) bufprintf(ob, "", options->toc_data.header_count++); if (text) - bufput(ob, text->data, text->size); + escape_html(ob, text->data, text->size); BUFPUTSL(ob, "\n"); }