Allow missing whitespace for assertion fot html text

IE8 ignores whitespace between tag.
Merge pull request #2550 from tricknotes/allow-missing-whitesapce

Allow missing whitespace for assertion fot html text