Forked from https://github.com/ffmad/HTMLtoOpenXML
Simple PHP script which take HTML code and transform it into OpenXML Code. (for Docx)
This is the very first version. I coded this because i wanted to put text from a WYSIWYG editor into a .docx document.
composer require rkorebrits/htmltoopenxml
For now it can deal with :
- Paragraphs
- Bold, italic and underlined text (<strong|b|em|i|u>)
- Bullet lists
Many more can be done (the wysiwyg editor had only simple functions)
$parser = new HTMLtoOpenXML\Parser();
$ooXml = $parser->fromHTML($html);