Pasting HTML Entities into HTML Macro gets converted starting from Confluence 6.14.0

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: 6.14.0, 7.10.1, 7.10.2
    • None
    • 1
    • Severity 3 - Minor
    • 1

      Issue Summary

      Pasting HTML Entities into HTML Macro gets converted after Confluence 6.14.0

      Steps to Reproduce

      1. Install Confluence 6.14.0 or later
      2. Enable HTML Macro
      3. Create a new page and insert HTML Macro into the page
      4. Paste an HTML Entity into the HTML Macro such as:
        &
        

      Expected Results

      Any HTML Entities is pasted into the HTML Macro as it is

      Actual Results

      The pasted HTML Entities is converted into the associated special characters such as but not limited to:

      HTML Entity Associated Special Characters
       & 
      &
      "
      "
      <
      <

      Note

      This issue starts happening from Confluence 6.14.0 and not observed in Confluence 6.13.10, likely due to the Editor Improvement that comes with Confluence 7.14.0.

      Confluence Version Pasting HTML Entiries Worked?
      Confluence 6.13.10
      Confluence 6.14.0
      Confluence 7.10.1

      This issue is also related to CONFSERVER-59741 (for Code Block macro)

      Workaround

      Using <Markup>
      • Click on on the page where you want to add the code.
      • Click on <Markup>
      • Enter the text as shown in the screenshot attached for your reference, i.e. by adding the text content under {html}

        braces.

      • Click on insert and you would see the characters showing up as expected.

        1. markup.png
          markup.png
          149 kB
        2. insert markup.png
          insert markup.png
          142 kB
        3. expected result.png
          expected result.png
          12 kB
        4. actual result.png
          actual result.png
          19 kB

            Assignee:
            Unassigned
            Reporter:
            Damien Tan
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: