Question
Removing Whitespace from within a string
I have a string that I'm trying to remove any HTML existing
within it.
Here is the REReplace:
<cfset VARIABLES.stripped_content = REReplaceNoCase(getevents.calevent_content,"<[^>]*>","","ALL") >
After this I'm trying to output the first 97 characters of the screen as preview text...however that reg replace leaves a ton of whitespace that appears to be messing up my Left() function.
How do I get rid of all that whitespace generated from the rereplace??
Thanks!!
Paul
Here is the REReplace:
<cfset VARIABLES.stripped_content = REReplaceNoCase(getevents.calevent_content,"<[^>]*>","","ALL") >
After this I'm trying to output the first 97 characters of the screen as preview text...however that reg replace leaves a ton of whitespace that appears to be messing up my Left() function.
How do I get rid of all that whitespace generated from the rereplace??
Thanks!!
Paul
