Forum


Replies: 3   Views: 3440
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  · 12-04-2016 - 06:58

If i use this code (see below). The <p> are replaced bij \r (not wat i want) I want to replace the <p> with a  'normal' breakline(enter)

$row_TEMP['MEMO'] = str_replace("<p>", '\r', html_entity_decode($row_TEMP['MEMO']) );

------------------------

The only thing that i want to do is: I have a array (with sql/text(blob field) that i put in a phpdocx addTable function.

$wf = new WordFragment($docx, 'document');
$wf->addTable($Array_Table_Value, $paramsTable);
$docx->replaceVariableByWordFragment(array('Array_Table_Value' => $wf), array('type' => 'block'));