Fixes tests where space replaces an html tag.