Here is the full html file "built" by the blocks in the BuildFile procedure
How does this work? The BuildFile procedure creates a full html file using the inputs of the content and filename which can be provided by the user. The button click calls the newly created file with activityStarter to be opened by Chrome.
Hopefully you can figure it out from here ?
Credits: inspired by pdf extension from Andres Daniel Cotes