Fix html param

The html parameter was being pretty much ignored.