Escape html inside table of contents.

This commit is contained in:
Greg Leaver 2012-02-14 21:40:25 -05:00
parent 1c2ac9e094
commit 0f57962b82

View file

@ -509,7 +509,7 @@ toc_header(struct buf *ob, const struct buf *text, int level, void *opaque)
bufprintf(ob, "<a href=\"#toc_%d\">", options->toc_data.header_count++);
if (text)
bufput(ob, text->data, text->size);
escape_html(ob, text->data, text->size);
BUFPUTSL(ob, "</a>\n");
}