Forum


Replies: 2   Views: 3369
Embedhtml: lists & <p> tags not rendering on templates?
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 coconnor  · 19-12-2016 - 21:29

Hi- thanks for the quick response.

Per your suggestion, I set 'type'=>'block' in the replaceVariableByHTML options, and all worked as expected.

For the record, I also saw evidence that you can do something similar via embedHTML: 

$template->embedHTML("<p>test</p>", array(
  'type' => 'block',
  'strictWordStyles' => TRUE,
));
}

Thanks for the help!