A blank space should be mapped to &nbsp; not ' ' if the format == html