Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Escape html inside table of contents.

  • Loading branch information...
commit 0f57962b824237478bf556b1800ee258c6e2c528 1 parent 1c2ac9e
@gregleaver gregleaver authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  html/html.c
2  html/html.c
@@ -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");
Please sign in to comment.
Something went wrong with that request. Please try again.