Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-59052

Inserting HTML entities in a code or no format macro converts the characters

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • 6.15.4, 7.0.3
    • Macros - Other Macros
    • None

      Issue Summary

      HTML Unicode characters inserted into a code macro or no format macro are being converted to the ASCII value.
      This this does not occur when not placed in a one of those macros but it would seem those macros were made to be able to hold formatting and text without converting any of it.

      It was initially thought it was HTML hex entities only, but it appears to be any HTML entity, Hex, Decimal or "named" variant according to customer reports. Further screenshots attached.

      Steps to Reproduce

      1. Create a test page
      2. Paste the following '&#x2f ;' (without the space otherwise it converts here to)
      3. Add a code or no format macro and paste '&#x2f ;' (without the space otherwise it converts here to)
      4. Notice it's immediately converted to a forward slash

      Expected Results

      It retains all formatting and characters.

      Actual Results

      It converts the HTML hex value to it's ASCII symbol

      Notes:
      List of hex values: http://www.howtocreate.co.uk/sidehtmlentity.html

      Workaround

      Does not occur in panel or markup macro using Markdown syntax.

            Unassigned Unassigned
            dmark@atlassian.com Danny (Inactive)
            Votes:
            7 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated: