Forum


Replies: 3   Views: 3118
Character < and addtext/addtable functions
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by nicolasfagotti  · 08-06-2011 - 13:35

When a < character is inserted with the addText or addTable function, the document crashed and it's imposible to open it. Is there a solution to this problem?

Posted by admin  · 11-04-2013 - 12:12

Hello,

Please try escaping that character: '\<'.

Regards. Jorge.

Posted by Chafik  · 11-04-2013 - 12:12

The <character can not be used for xml there is also the character '&' which can not be used;
They must be replaced in the document by their respective codes ascii '<' and '&'