[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Non breaking space replacement?


On 12/6/25 4:31 PM, Bruce Steers wrote:
Is there a simple way to replace all non breaking spaces in a string for normal spaces?
FromHtml does not work because there may also be < or > chars I do not want converted

The string is otherwise fine,
It is Gambas code being passed from element.innerText (js) as a base64 encoded uri query string.
On the Gambas side just FromBase64 decodes it okay apart from it has nbsp for spaces  instead of just sp and it breaks things.

I found a JavaScript way to do it client side but wondered if a there's simple Gambas way I haven't yet tried (I tried a few things but no success)

Tia
Respects
BruceS

Replace("$nbsp;"," ")    ?


--
Lee

--- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ----
--- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----


Follow-Ups:
Re: Non breaking space replacement?Bruce Steers <bsteers4@xxxxxxxxx>
References:
Non breaking space replacement?Bruce Steers <bsteers4@xxxxxxxxx>