Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-7610

LiveTable generator does not escape XWiki syntax in JSON strings.

    XMLWordPrintable

Details

    • json escaping
    • Easy

    Description

      The JSON code is generated from a page in syntax XWiki/2.0 with target syntax plain. Typically a field is generated as such:

                 "$escapetool.javascript(${colname})" : "$escapetool.javascript(${text})"
      

      Any wikitext in the result of the expression $escapetool.javascript(${text}) will be rendered to plain syntax. In particular '(((' and ')))' are problematic as these will be rendered as verbatim new line characters, which results in unparsable json code.

      Attachments

        Activity

          People

            aj Andreas Jonsson
            aj Andreas Jonsson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: