As mentioned in Post #4, the string " " is a
non-
breaking space character. That's what the "nb" in "&
nbsp;" stands for.
So, before you save the HTML, just substitute all the soft spaces for hard spaces:
Doc = "SOME TEXT ==> MORE TEXT"
Doc = Doc.Replace(" "," ")
Save "Doc.html"
Then the resulting HTML will be:
"SOME TEXT ==> MORE TEXT"
Which will display as follows in an HTML/Webview viewer:
"SOME TEXT ==> MORE TEXT"