How to convert the html tag string to a word document using PHPWord?
I have a HTML string and I want to print in the word document in same format and style as in the HTML. I am using the PHPWord When I give my HTML string say: $htmlval ="<h6><div style="text-align: center;"><b style=\\"font-size: x-large;\\">OFFER LETTER</b></div><font size=\\"3\\"><div style="text-align: center;"><span style=\\"font-size: medium;\\">(This goes as an email copy)</span></div>"; this is the HTML tags with break and div. to: $section->addText($htmlval); it prints all HTML tag but I want the content with the format specified in the HTML. In limited way its possible, but just only