Michael,

>In truth all you have to do is double the pound signs so Replace(string,
>'##', '####', 'all') should do it. It will replace every single pound
>within your text with a double pound, ignoring everything else.

I was under the impression that he had other code that might have valid
CFML, so doing a blanketed replace would corrupt that data. 

Honestly, if you're going to let your users write executable CFML, then I'd
just require them to escape their pound signs manually.

-Dan



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211967
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to