Kogie / xdocreport

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

TextFormatting : missing XML escapting in TextStyling #173

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If the Html passed to the text styling contains un Html Entities it may make 
the resulting XML Document Non valid.

The problem:

Html Entities contained in text node are properly decoded.
But when writen in the output XML Document they are not encoded.

Typically :

source Html : &
text node read : &
xml output : <text:span> & </text:span>

Original issue reported on code.google.com by tdelprat@nuxeo.com on 18 Oct 2012 at 10:01

GoogleCodeExporter commented 9 years ago
Hi Tiry,

Are you sure that you have tested this case with 1.0.0? I believe that I had 
fixed this problem.

See Junit  testSpecialCharacterAmp in the 
http://code.google.com/p/xdocreport/source/browse/document/fr.opensagres.xdocrep
ort.document.odt/src/test/java/fr/opensagres/xdocreport/document/odt/textstyling
/ODTDocumentHandlerTestCase.java

Regards Angelo

Original comment by angelo.z...@gmail.com on 18 Oct 2012 at 10:13

GoogleCodeExporter commented 9 years ago
Hi Angelo,

No, You are right, I did not test it for now.
But I will.

I'll close this issue if this indeed works.

On my side https://jira.nuxeo.com/browse/NXP-10346

Thanks Angelo.

Original comment by tdelprat@nuxeo.com on 18 Oct 2012 at 10:17

GoogleCodeExporter commented 9 years ago
You are right : it does work ok in 1.0.0-SNAPSHOT.

I'll align nuxeo dev branch on 1.0.0 asap.

Thank you.

Original comment by tdelprat@nuxeo.com on 18 Oct 2012 at 10:39