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

Invalid HTML produced when item URL contains a quotation symbol ". #123

Closed
adomasven opened this issue Oct 11, 2021 · 1 comment · Fixed by #124
Closed

Invalid HTML produced when item URL contains a quotation symbol ". #123

adomasven opened this issue Oct 11, 2021 · 1 comment · Fixed by #124

Comments

@adomasven
Copy link
Member

When producing the bibliography with APA, with an item that has an URL field with a " symbol in it, the output is

“Title.” n.d. Accessed July 26, 2021. <a href="http://example.com/?"">http:&#x2f;&#x2f;example.com&#x2f;?&quot;</a>.

The quotation symbol in the href field should be escaped in the output.

@cormacrelf
Copy link
Collaborator

Turns out you can percent-encode most of these problems away, and this is also how RTF does it (but it is more aggressive, many more % signs). I've roped myself into implementing CSL 1.1 url auto-prefixing as well, but nearly there.

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

Successfully merging a pull request may close this issue.

2 participants