" " to "&nbsp;"

I replace a whitespace element that needs to be displayed with a "&nbsp;".