Per default, interpolation values get escaped to mitigate XSS attacks.
However, as shown in several places in the React-specific documentation (i18next instance, Getting started, Quick start), escaping interpolation values is not needed in when using React since React already escapes values.
Package version (if known): v13.0.0b1.dev18
Describe the bug
The journal title field is double escaped, and characters like apostrophe are shown as HTML entities.
Steps to Reproduce
Enable journal fields as described in Optional metadata by adding the following to invenio.cfg
And then running
pipenv run invenio rdm-records custom-fields init
Journal <em>special</em> characters - _ . ! ~ * ' ( ) [ ] < > ; / ? : @ & = + $ , # % | \ "
Uploaded on ..., 2024 | Published in: Journal <em>special</em> characters - _ . ! ~ * ' ( ) [ ] < > ; / ? : @ & = + $ , # % | \ ", 2024.
Screenshot of the bug
Screenshot of the bug fix
Additional context
As specified in i18next documentation about Interpolation:
However, as shown in several places in the React-specific documentation (i18next instance, Getting started, Quick start), escaping interpolation values is not needed in when using React since React already escapes values.