markswindoll / jQuery-Word-Export

jQuery plugin for exporting HTML and images to a Microsoft Word document
http://markswindoll.github.io/jquery-word-export/
MIT License
220 stars 145 forks source link

Convert HTML string? #20

Open rickhellewell opened 6 years ago

rickhellewell commented 6 years ago

Is it possible to convert an HTML string?

My code creates an HTML doc (with full doctype/html/head/body content). I need to use your plugin to convert that to a Word Doc. (Yes, I can import an HTML into Word 2010, but it has problems with the 'figure' and 'caption' tags; not converting the caption into a image caption.)

So I need to use the PHP variable (that contains the HTML doc code) in the plugin.

How can I do that?