After trying few things, I wrote this blog post. It should work similarly with HTML, as mentioned in another answer.