Skip to content

Simple PHP script which take HTML code and transform it into OpenXML Code. (for Docx)

Notifications You must be signed in to change notification settings

rkorebrits/HTMLtoOpenXML

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

H2OXML : HTML to OpenXML Converter

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.

INSTALLATION

composer require rkorebrits/htmltoopenxml

WHAT H2OXML CAN DO

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)

HOW TO USE IT

$parser = new HTMLtoOpenXML\Parser();

$ooXml = $parser->fromHTML($html);

About

Simple PHP script which take HTML code and transform it into OpenXML Code. (for Docx)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%