Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad HTML if titles contains quote #17

Open
pboesch opened this issue Feb 11, 2019 · 0 comments
Open

Bad HTML if titles contains quote #17

pboesch opened this issue Feb 11, 2019 · 0 comments

Comments

@pboesch
Copy link

pboesch commented Feb 11, 2019

Hi,

An issue with quote: if a title of table of content contains quote, the html code generates is broken.

For example:

Title: this is test
Date: 2019

# with english h1
## and again english h2
### i'll show you now

html:

   <div id="toc"><ul><li><a class="toc-href" href="#with-english-h1" title="with english h1">with english h1</a><ul><li><a class="toc-href" href="#and-again-english-h2" title="and again english h2">and again english h2</a><ul><li><a class="toc-href" href="#ill-show-you-now" ll="" now'="" show="" title="i" you="">i'll show you now</a></li></ul></li></ul></li></ul></div>

See? string after quote becomes a html tag.

<a class="toc-href" href="#ill-show-you-now" ll="" now'="" show="" title="i" you="">i'll show you now</a>

with extract_toc no issue (but no title tag)

If you have any questions...
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant