larsgw / citation.js

Citation.js converts formats like BibTeX, Wikidata JSON and ContentMine JSON to CSL-JSON to convert to other formats like APA, Vancouver and back to BibTeX.
https://citation.js.org/
MIT License
219 stars 30 forks source link

What does citation JS use to escape citation data before turning it into html? #218

Closed J-avery32 closed 2 years ago

J-avery32 commented 3 years ago

And where can I see the code that does the actual escaping?

larsgw commented 3 years ago

That's a good question.

There are also two situations where a non-HTML format is outputted with HTML markup (e.g. JSON with HTML indentation for if you do not want to use <pre> for some reason). This is the status on those:

Other output formats do not offer this kind of HTML-formatted output, but if they did they are unlikely to be escaped.

J-avery32 commented 3 years ago

I see. Thank you. I didn't realize that the code for escaping is in another repository.