use REReplace() with a regex to replace spaces only outside < and >. will write one for you later if nobody else does...
Azadi Rick Faircloth wrote: > No, it's just text with the <b style="color:red;">SITE DEVELOPMENT</b> > around it. > > But after looking at the source I figured out what was going on. > The spaces inside the style code are also being changed to . > > So, in the source it looks like this: > <b style="color:red; font-size:14px;"> > which is non-functional. > > The question is... how do I replace just the spaces, or the chr(32) > characters > in the text with something that won't affect the code? > > Is there any other code I can add to the <b style=...> which > will cause it to be parsed as code and not text? Something like, > <code><b style="color:red;"></code>SITE DEVELOPMENT<code></b></code> ??? > > Rick > > > > >> -----Original Message----- >> From: Jake Churchill [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, October 10, 2007 6:43 PM >> To: CF-Talk >> Subject: RE: Why does this code disable styling? >> >> This might not be relevant but, what is returned by >> get_events.event_description? If it is some type of HTML such as <span >> style="font-weight:normal; color:black;">...</span> then it will >> overwrite >> the <b> styling because it is inside it. >> >> _____ >> >> Jake Churchill >> Team Leader >> 11204 Davenport, Ste. 100 >> Omaha, NE 68154 >> http://www.cfwebtools.com >> 402-408-3733 x103 >> >> >> -----Original Message----- >> From: Rick Faircloth [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, October 10, 2007 5:28 PM >> To: CF-Talk >> Subject: Why does this code disable styling? >> >> Hi, all. >> >> In trying to tweak the display of some of my data in a textfield, >> I started using <b style="color:red;"></b> to make my >> heading stand out from the text under the heading. >> >> All was working great until I added some code to try to get >> the browser to honor spaces created with the spacebar, >> like I do with replacing carriage returns, chr(13)'s, with >> <br>. >> >> So I tried this: >> >> #replace(replace(get_events.event_description, "#chr(13)#", "<br>", >> "All"), >> "#chr(32)#", " ", "All")# >> >> was the closest I could find to a spacebar html representation >> at the moment. (Is there something better to use?) >> >> Anyway, the code above works fine, but it disables my >> <b style="color:red;"></b> code. No bold and no red. >> >> Why is that? >> >> Rick >> >> >> >> >> >> >> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290836 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

