1. Velocity
  2. VELOCITY-555

Escape quotes in interpolated strings (both ' and ") by doubling them ('' and "")


    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: 1.7, 2.x
    • Component/s: None
    • Labels:


      More than a few years, the issue of escaping quotes in interpolated strings was discussed at some length. Eventually, the list came to a consensus that we should escape them by doubling them, since this would be (or at least very nearly be) backwards compatible and provide a simple solution for this much-wanted feature.

      Geir had working code for this and even posted a test jar, IIRC. So, many of us thought that this had made it into the 1.5 codebase. But the code never got checked in and may have been lost. Assuming Geir can't find the old code or the time to duplicate the effort, we should still try to implement this.

      This issue is open to remind us of that. If i get around to digging up links to the relevant threads, i will post those in the comments of this issue.

      1. velocity-555.patch
        5 kB
        Jarkko Viinamäki

        Issue Links


          Mark Thomas made changes -
          Workflow Default workflow, editable Closed status [ 12551670 ] jira [ 12552545 ]
          Mark Thomas made changes -
          Workflow jira [ 12406541 ] Default workflow, editable Closed status [ 12551670 ]
          Nathan Bubna made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 1.7 [ 12313453 ]
          Fix Version/s 2.0 [ 12310291 ]
          Resolution Fixed [ 1 ]
          Jarkko Viinamäki made changes -
          Link This issue relates to VELOCITY-709 [ VELOCITY-709 ]
          Jarkko Viinamäki made changes -
          Attachment velocity-555.patch [ 12439986 ]
          Nathan Bubna made changes -
          Field Original Value New Value
          Fix Version/s 1.6 [ 12310290 ]
          Nathan Bubna created issue -


            • Assignee:
              Nathan Bubna
            • Votes:
              1 Vote for this issue
              1 Start watching this issue


              • Created: