Replace spaces with &nbsp; only if syntax is html
0.9.1