-
Task
-
Resolution: Fixed
-
L3 - Default
-
None
-
3
-
M
Context:
When we want to add translation to text that contain hrefs or b elements, we have the use the 'dangerouslySetInnerHTML' in order to do that. This is quite risky to XSS attacks and also cumbersome to deal with. We can investigate the possibility of making the translation utility accept JSX markup variables and returning a JSX markup containing the full translation.
AT:
- Make the translation utility function accept and return JSX markup