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

XML tag <t> not displayed properly by code macro

    XMLWordPrintable

Details

    Description

      Insert a code macro in a Confluence page with the following XML snippet:

      <?xml version="1.0" encoding="utf-8" standalone="yes"?>
      <sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">
          <si>
              <t>Row1A</t>
          </si>
          <si>
              <t>Row1B</t>
          </si>
      </sst>
      

      Choose XML/HTML as syntax highlighting. Notice that the rendered XML after the page is saved looks like this:

      <?xml version="1.0" encoding="utf-8" standalone="yes"?>
      <sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">
          <si>
              &lt;t>Row1A&lt;/t>
          </si>
          <si>
              &lt;t>Row1B&lt;/t>
          </si>
      </sst>
      

      The

      <t>
      

      tag has been changed to

      &lt;t>
      

      Other tags are not affected.

      If plain text syntax highlighting is chosen instead, the entire XML is displayed properly.

      Attachments

        Activity

          People

            Unassigned Unassigned
            3e810e8444b6 Gabriel Sandor
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: