Fixes issue where an orphan contained in an HTML tag would have it's HTML tag broken.