Escape html inside table of contents.
This commit is contained in:
parent
1c2ac9e094
commit
0f57962b82
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue