Tolerate leading/trailing whitespace in html string.
Merge pull request #22 from timoxley/feature/tolerate-whitespace

Tolerate leading/trailing whitespace in html string.