dswitzer
10/03/2023, 11:41 AM<cfscript>
buffer = "+++hello+world+++".replace("+", chr(32), "all");
echo( htmlCodeFormat('"'&trimWhitespace(buffer)&'"') );
</cfscript>
This returns " hello world ", so there's still whitespace on each side of the string, but it just consolidated the spaces.