Remove spacing from string
Posted
#3569
(In Topic #709)
Example: this is a test string
Output: thisisateststring
I checked out $TRIM and $DEEP_CLEAN and thought these would do the trick, but I guess I'm not fully understanding the definition of "white-space".
Any suggestions?
Posted
HTML won't show runs of multiple white-spaces (it'll just show 1 instead), but it won't strip them all.
If you just miswrote, and it's only reducing multiple white-spaces to 1, then applying the CSS 'white-space: pre' will make them show, although this also stops word-wrapping.
Posted
You need to use the 'REPLACE' symbol to literally replace the space character with blank.
OTTOMH…
{$REPLACE, ,,{SOME_PARAMETER}}
Posted
Chris Graham said
I mis-read.
You need to use the 'REPLACE' symbol to literally replace the space character with blank.
OTTOMH…
{$REPLACE, ,,{SOME_PARAMETER}}
From “Post #3582”, 30th Dec 2017
I'll try that Chris, thanks!
0 guests and 0 members have recently viewed this.
