Fixes issue where html is not generated from text.