Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-582

Add $escapetool.json for escaping JSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.0-rc-1
    • Fix Version/s: 6.1-milestone-1
    • Component/s: Velocity
    • Labels:
      None
    • Tests:
      Unit
    • Documentation:
      N/A (will show up in the SRD)
    • Similar issues:

      Description

      While JavaScript and JSON use almost the same escape syntax, one critical difference is that ' doesn't need to be escaped, and it's actually a syntax error to escape it. This causes the livetable to fail to display correctly in certain browsers if there's a document containing an apostrophe in its name, or is created/authored by a user with an apostrophe in his name.

        Attachments

          Activity

            People

            • Assignee:
              sdumitriu Sergiu Dumitriu
              Reporter:
              sdumitriu Sergiu Dumitriu
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: