Fixes issue where an orphan contained in an HTML tag would have it's HTML tag broken.
Tidy that commit up a bit...
Merge pull request #1 from dangates/master

Handling orphans in tags