views:

25

answers:

1

I need to take user input from a web page and write it to a word document.

Im using a wysywyg editor that allows bullet points with the output being a html list.

I need to then convert that to Word XML.

Any suggestions?

I have the syntax/structure for the XML bullet lists but I need to convert the html list to the xml bullet point list.

Maybe preg_replace? I'm not 100% how to do that though

A: 

If you need to write an actual word document (.docx) then a library like phpdocx or PHPWord should be able to do that for you. Alternatively, Word is quite capable of reading HTML files.

Mark Baker