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

Turning characters into html entities breaks velocity code

    Details

    • Similar issues:

      Description

      When editing a document in the WYSIWYG editor, characters like " and & are turned into " and &. This is ok for normal text, but breaks macros.

      #set($var = "a string")
      becomes
      #set($var = "a string")

      #if($a && $b)
      becomes
      #if($a && $b)

      This raises:
      org.apache.velocity.exception.ParseErrorException: Lexical error: org.apache.velocity.runtime.parser.TokenMgrError: Lexical error at line 7, column 15. Encountered: "q" (113), after : "&"

        Attachments

          Activity

            People

            • Assignee:
              phunghainam Phung Hai Nam
              Reporter:
              marta Marta Girdea
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: