Thanks for sharing. I'm sure it will be.
Would it be possible for you provide the output of your AppleScript that sets the KM Variable "theHTMLBody", so we could see what is created and test the macro?
Many of us do not have the DevonThink app, and even if we did, not likely to have the data you have in it.
Thanks.