Forum


Replies: 5   Views: 3947
$docx->replacevariablebyhtml | parsedivsasps problem
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 cstolze  · 10-03-2015 - 10:11

Hi everybody, I have a problem with the function I mentioned in the topic. I use following code: $docx->replaceVariableByHTML('DATE_PROCESS_CONTENT', 'inline', ''.trim($date_process_content).'', array('isFile' => false, 'parseDivsAsPs' => true, 'downloadImages' => false)); The $date_process_content for example looks like: foreach (....) { $date_process_content.= '-div--b-'.trim($problemTypeName).'-/b--/div--div-'.$processDetails['notes'].'-/div-'; } The generated worddocument does not have any paragraphs, not even a line break. It works only with the br- tag, but than the word document have just linebreak, not paragraphs. I tried also block instead of inline with no effects. Any idea? Thank you.