Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug with $section->addText() method and '&' character with release 0.12.0 #552

Closed
simogeo opened this issue Jun 12, 2015 · 1 comment
Closed

Comments

@simogeo
Copy link

simogeo commented Jun 12, 2015

This code is causing error when opening file with Office / Word 2007.
It is ok when opening with LibreOffice. Removing the '&' character make file opening correctly.

« Habiter autrement », my text</w:t></w:r></w:p><w:p><w:pPr><w:pageBreakBefore w:val="1"/></w:pPr><w:pPr/></w:p><w:p><w:pPr><w:pStyle w:val="Heading2"/></w:pPr><w:bookmarkStart w:id="61" w:name="_Toc61"/><w:r><w:t>2.1.1 here we go</w:t></w:r><w:bookmarkEnd w:id="61"/></w:p><w:p><w:pPr/><w:r><w:rPr><w:rStyle w:val="attachedTheme"/></w:rPr><w:t xml:space="preserve">» Orientation : 2.1 text &  some more
</w:t></w:r></w:p><w:p><w:pPr><w:pStyle w:val="Heading3"/></w:pPr><w:bookmarkStart w:id="62" w:name="_Toc62"/><w:r><w:t>Description</w:t></w:r><w:bookmarkEnd w:id="62"/></w:p><w:p><w:pPr/><w:r><w:rPr/>

I saw this is a common reported error. I also read : #401. And, it is definitely not clear to me. Should content be escaped outside or not ?

@simogeo
Copy link
Author

simogeo commented Jun 15, 2015

My mistake sorry. It is ok when calling htmlspecialchars()

@simogeo simogeo closed this as completed Jun 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant