Forum


Replies: 3   Views: 3398
Strange chars in phpdocx out
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 kpholland  · 11-04-2016 - 14:51

I have a Mysql database with a TEXT type field. When i use this field in our Word PHPdocx template i'am getting this as result (see text below). I have tryed htmlspecialchars_decode/html_entity_decode on the field before putting it in the PHPdocx array ($wf->addTable($Array_Table_Value, $paramsTable);
)... But the result is still the same <p> and \r and \n still visible in mine PHPdocx Output file :(

 

 

<p>Inhoud gesprek</p>\r\n\r\n<p>Dit is een test bericht</p>\r\n\r\n<p>En nog een regel</p>\r\n\r\n<p>En nog een regel</p>\r\n