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.
Hi!
As I experienced if I insert an HTML text into word document and the HTML text contains ul TAG after the close ul TAG the text lost the set predefined word style.
Example:
$html = 'Lorem ipsum....
Lorem ipsum....';
$docx = new CreateDocxFromTemplate($template); // $template doc include the predefined word stlye...
$docx->embedHTML('[p]'.$html .'[/p]', array('strictWordStyles'=>true,
'wordStyles'=>array('[p]'=>'description')));
$docx->createDocx('generated_doc');
Of course change all [] brackets to the right HTML TAG brackets.
So after the close ul TAG the second "Lorem ipsum..." text wont formatted with description style...
Thank you!