Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #90 from gregleaver/toc_escaping

Escape html inside table of contents.
  • Loading branch information...
commit b380583a4cfd0c0ae3304fc3a1d923256b9d1d0b 2 parents 1c2ac9e + 0f57962
Vicent Marti vmg authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  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)
509 509
510 510 bufprintf(ob, "<a href=\"#toc_%d\">", options->toc_data.header_count++);
511 511 if (text)
512   - bufput(ob, text->data, text->size);
  512 + escape_html(ob, text->data, text->size);
513 513 BUFPUTSL(ob, "</a>\n");
514 514 }
515 515

0 comments on commit b380583

Please sign in to comment.
Something went wrong with that request. Please try again.