correct html type detection
Merge pull request #127 from just-boris/master

correct html type detection