Adding google docs content to gmail body content (formatting intact)

Hi!

How do i add the contents of a google doc, while keeping the formatting intact?

I seem to only be bale to add the google docs content in raw text format…

Cheers!

one way to do it is exporting the document as html using getfile module and then process the data to extract the html body parts and then insert it onto gmail module but it won’t add any styling

Hey, thanks for your reply!

What module do I use to process the html file that is the output from either the docs or drive?

you can use text parser match pattern module use a regex that matches everything using the < body > < /body > tags

The parser wont take the file as input… Only thing I can send it that look usefull is the data param from the download file module in google drive and google docs…