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

Macro parameter escaping

    XMLWordPrintable

Details

    • Unit
    • Hard

    Description

      Macro parameters currently need escaping when containing curly braces. For example, the following fails to render properly:

      {{box title="{{info}}test{{/info}}"}}this is a test{{/box}}
      

      Parts of the info tag gets added to the content of the box instead of into the title.  It does work when the info is escaped properly:

      {{box title="~{~{info~}~}test~{~{/info~}~}"}}this is a test{{/box}}
      

      This is inconsistent with the way that the WYSIWYG editor sets parameters.

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              orangerd Lewis Denizen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: