Closed J-avery32 closed 2 years ago
That's a good question.
'bibliography'
and 'citation'
) is made with citeproc-js and its HTML escape function can be seen here. It also allows some generic formatting HTML.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:
UNSAFE_UNICODE
and escapeValue
)..format('data', { type: 'html' })
or .format('data', { format: 'html' })
. When those options are used a warning is normally logged, but the logger is currently silent by default.Other output formats do not offer this kind of HTML-formatted output, but if they did they are unlikely to be escaped.
I see. Thank you. I didn't realize that the code for escaping is in another repository.
And where can I see the code that does the actual escaping?