Create a space with a name like, say, '& this is how the tree breaks' and try to export a page within the space as a PDF. You'll find this:

      Caused by: org.apache.fop.apps.FOPException: The entity name must immediately follow the '&' in the entity reference.
      at org.apache.fop.apps.Driver.render(Driver.java:503)
      at org.apache.fop.apps.Driver.run(Driver.java:565)
      at com.atlassian.confluence.importexport.impl.PdfExporter.generatePDF(PdfExporter.java:158)
      ... 78 more

            [CONFSERVER-2101] XML escape characters in space titles break PDF export

            HTML export works fine.

            Tom Davies added a comment - HTML export works fine.

            Tom Davies added a comment -

            Escaped &, < and > in page titles when exporting to PDF

            Do we need to escape other chars, and do we need to worry about other types of export, e.g. HTML?

            Tom Davies added a comment - Escaped &, < and > in page titles when exporting to PDF Do we need to escape other chars, and do we need to worry about other types of export, e.g. HTML?

              tom@atlassian.com Tom Davies
              nick@atlassian.com Nick Faiz [OLD] (Inactive)
              Affected customers:
              1 This affects my team
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: