UNPKG

biblatex-csl-converter

Version:

Bibliography format converter: BibLaTeX, BibTeX, CSL-JSON, RIS, ENW, EndNote XML, Citavi, DOCX citations, ODT citations — parse, convert, and export with round-trip fidelity

13 lines (11 loc) 449 B
// If one runs the CSL exporter with escapeText = true, the output from // citeproc (bibliography and citation entries) will need to be unescaped // using this function. export function unescapeCSL(theValue: string): string { return theValue .replace(/&/g, "&") .replace(/</g, "<") .replace(/>/g, ">") .replace(/'/g, "'") .replace(/"/g, """) }