Uploaded image for project: 'XWiki Rendering'
  1. XWiki Rendering
  2. XRENDERING-775

Parenthesis before attributes not escaped

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 16.10.3
    • Syntax - xwiki/2.1
    • None
    • Unknown

    Description

      When converting the given HTML 5.0 example to XWiki 2.1 using the rendering API,
      the last parenthesis of the text if (( before attributes given with (% ... %) is not escaped with ~, therefore the rendered XWiki 2.1 will be flawed.
      Also, the second parametrization is missing the style part.

      HTML 5.0

      <span style="font-size: 12pt; font-family: Courier New, Courier New_MSFontService, monospace;">if ((</span><span style="font-size: 12pt; font-family: Courier New, Courier New_MSFontService, monospace;"><span class="SpellingError">depth_in_cm</span></span>
      

      Converted XWiki 2.1

      (% style="font-size: 12pt; font-family: Courier New, Courier New_MSFontService, monospace;" %)if (((% class="SpellingError" %)depth_in_cm
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            armingu Armin Günther
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: