'.$htmlCode.'
', array('strictWordStyles'=>true, 'wordStyles'=>array(''=>'description', ''=>'descriptionList'))); Both style - description and descriptionList is based in word template what I use. I read this page: http://www.phpdocx.com/documentation/introduction/html-to-word-PHP Found that solution where use HTML tag to set which stlye shold be get on...but it is not work :( If I use class like this: ''.$htmlContent.'
' then I define style useing like this: 'wordStyles'=>array('.desc_content'=>'description', .... it is work I can not find whats worng...what I am using wrong because both styles not manage to enforce...