I’m not sure if I understand, or if this script will help but, from the same archive, here’s Save Clipboard in TE+. TE+ has a convert to HTML option under Scripts>Convert menu. Do you need something other than that?
If I’ve misinterpreted your needs, please feel free to ask for further info or help.