Uploaded image for project: 'VIVO'
  1. VIVO
  2. VIVO-1842

i18n - Freemarker templates that insert values into Javascript code do not always handle single quotes properly

    XMLWordPrintable

    Details

    • Attachments:
      1
    • Comments:
      16
    • Sprint:
      VIVO Sprint 9, VIVO Sprint 10, VIVO Sprint 12

      Description

      As discussed on the [21 Apr 2020 developers' call|https://wiki.lyrasis.org/display/VIVO/2020-04-21+-+VIVO+Development+IG], templates that insert strings into Javascript tend to cause errors when those strings contain single quotes/apostrophes, as is likely to occur in French-language VIVOs.

      Any such templates should be examined.  The following Freemarker built-ins may be useful: 

      https://freemarker.apache.org/docs/ref_builtins_string.html#ref_builtin_js_string

      https://freemarker.apache.org/docs/ref_builtins_string.html#ref_builtin_json_string

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dickner.nicolas Nicolas Dickner
              Reporter:
              brianjlowe Brian Lowe
              Reviewer:
              Andrew Woods Andrew Woods
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: