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
226 stars 30 forks source link

Decode HTML entities when outputting plain text #74

Closed larsgw closed 7 years ago

larsgw commented 7 years ago

Example output:

$ echo Q30000000 | citation-js -f string -s citation-apa
[set] Unknown property: P1922
[set] Unknown property: P407
Could not use "nc", falling back to slower node.js method for sync requests.

  Miccadei, S., Leo, R. D., Zammarchi, E., Natali, P. G., & Civitareale, D. (2002). The Synergistic Activity of Thyroid Transcription Factor 1 and Pax 8 Relies on the Promoter/Enhancer Interplay. Molecular Endocrinology, 16(4), 837–846. https://doi.org/10.1210/MEND.16.4.0808
larsgw commented 7 years ago

Should be fixed with #81, using text mode, which shouldn't escape characters like that.

larsgw commented 7 years ago

Fixed with #81.