Kogie / xdocreport

Automatically exported from code.google.com/p/xdocreport
1 stars 0 forks source link

Issue with ampersand in HTML FieldsMetadata #188

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create an HTML FieldMetaData with ampersand.
2. Generate the report using a servlet.

What is the expected output? What do you see instead?
The ampersand is not handled well , I am getting error on SAX parser when using 
ampersand in my html. I tried converting it to & which takes care of 
parsing error but now I am getting 'Illegal character found' error when opening 
the word document.

What version of the product are you using? On what operating system?
0.9.8

Please provide any additional information below.

snippet from my code 

            FieldsMetadata metadata = xDocReport.createFieldsMetadata(); 
            metadata.addFieldAsTextStyling("findings", SyntaxKind.Html); 
            context = xDocReport.createContext();

        } catch (XDocReportException e1) {
            throw new ServletException("XDocReport problem", e1);
        }

            String findingsHTML = "";
                        //findingsHTML = findingsHTML.replaceAll("&", "");
            LOG.info(findingsHTML);

            context.put("findings", findingsHTML);
        }

        context.put("DefLetterMap", defLetterMap);
        resp.setContentType("application/msword");

Original issue reported on code.google.com by join...@gmail.com on 7 Nov 2012 at 7:42

GoogleCodeExporter commented 9 years ago
Hi,

I have fixed this issue in 1.0.0 (see 
http://code.google.com/p/xdocreport/issues/detail?id=155)

Please try with (not released) 1.0.0.

Regards Angelo

Original comment by angelo.z...@gmail.com on 8 Nov 2012 at 8:27

GoogleCodeExporter commented 9 years ago

Original comment by angelo.z...@gmail.com on 8 Nov 2012 at 8:37

GoogleCodeExporter commented 9 years ago

Original comment by angelo.z...@gmail.com on 11 Jan 2013 at 12:36