> Of course, you are also replacing the space in <b style="color:red;"> > by <b style="color:red;"> which is an illegal tag.
Yeah, I figured that out after reviewing source. Azadi suggested I need an regex to change all the spaces to except those within the < and > so the code is untouched. Know how to regex that, Claude? If so, care to whip one out for me? If I have to choose, I'll just leave out the styling code. Maintaining space integrity is more important. Rick > -----Original Message----- > From: Claude Schneegans [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 11, 2007 11:55 AM > To: CF-Talk > Subject: Re: Why does this code disable styling? > > >>#replace(replace(get_events.event_description, "#chr(13)#", "<br>", > "All"), > "#chr(32)#", " ", "All")# > > You are using unnecessary # in this expression, use instead: > #replace(replace(get_events.event_description, chr(13), "<br>", "All"), > chr(32), " ", "All")# > > But it is not the source of your problem > > Anyway, the code above works fine, but it disables my > <b style="color:red;"></b> code. No bold and no red. > > Of course, you are also replacing the space in <b style="color:red;"> > by <b style="color:red;"> which is an illegal tag. > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion is delivering applications solutions at at top companies around the world in government. Find out how and where now http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290876 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4