Make translations accept html markup

XMLWordPrintable

    • 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

            Assignee:
            Unassigned
            Reporter:
            Omran Abazeed
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: