[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Non breaking space replacement?
[Thread Prev] | [Thread Next]
- Subject: Re: Non breaking space replacement?
- From: Lee <t.lee.davidson@xxxxxxxxx>
- Date: Sat, 6 Dec 2025 16:58:17 -0500
- To: user@xxxxxxxxxxxxxxxxxxxxxx
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] ----
| Re: Non breaking space replacement? | Bruce Steers <bsteers4@xxxxxxxxx> |
| Non breaking space replacement? | Bruce Steers <bsteers4@xxxxxxxxx> |