Code Block macro: wrong formatting shown for ampersand

XMLWordPrintable

    • 7
    • Severity 3 - Minor
    • 2

      ih3. Summary
      When using the '&' symbol in the Code Block macro, the wrong formatting is shown for ampersand.

      Environment

      • Confluence Cloud
      • Any browser

      Steps to Reproduce

      • Confluence page on edit mode.
      • Add the Code Block macro ({Code Block} or + icon > Other macros > Code Block).
      • Add code such as this example containing an ampersand on the Code Block macro box:
         <a href="https://test.test.br/?exp_partner=TESTTEST&utm_source=TESTTEST&utm_campaign=affiliates&utm_medium=link" target="_blank">sometext</a>
        
      • Publish the page.

      Expected Results

      • The code is shown correctly.

      Actual Results

      • The code appears as:
        <a href="https://test.br/?exp_partner=TEST&amp;utm_source=TEST&amp;utm_campaign=affiliates&amp;utm_medium=link" target="_blank">sometext</a>
        

      Workaround

      • This bug doesn't appear in the new editor. Customers impacted by this bug should use the new editor, which is currently being rolled out to all customers.

        1. Code block macro HTML.png
          42 kB
          Thais Krischer
        2. Oct-16-2019 15-54-01.mp4
          273 kB
          Kuldeep

            Assignee:
            Mark M (Inactive)
            Reporter:
            Thais Krischer (Inactive)
            Votes:
            57 Vote for this issue
            Watchers:
            57 Start watching this issue

              Created:
              Updated:
              Resolved: