Forked from https://github.com/ffmad/HTMLtoOpenXML
A simple PHP script supporting php 8.0 that takes HTML code and converts it into open XML code. (for Docx)
composer require ericzaev/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);