Attach html

Fixes #1390