jdsteinbach / eleventy-plugin-toc

11ty plugin to generate a TOC from page content
61 stars 19 forks source link

HTML entities are not escaped #9

Closed sebmck closed 4 years ago

sebmck commented 4 years ago

If you have a heading such as:

# `<div>`

The < and > will be successfully escaped when rendering the HTML, but however this plugin extracts it and outputs it to the TOC, retains the < and > which produces invalid HTML.