Try to fix unexpected HTML contents (ref gh-6).