If they are...I ummm...knew that...I was ummm....just testing you ... ;-) If they aren't...
function doit(str) { replace(str, "<", "<", "all"); replace(str, ">", ">", "all"); replace(str, "&", "&", "all"); return str; } function undoit(str) { replace(str, "<", "<", "all"); replace(str, ">", ">", "all"); replace(str, "&", "&", "all"); return str; } ..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -----Original Message----- From: Adrian Lynch [mailto:[EMAIL PROTECTED] Sent: Friday, December 16, 2005 6:00 PM To: CF-Talk Subject: RE: Reversing an HTMLCodeFormat string. Aren't HTMLEditformat() and HTMLCodeFormat() opposites? Ade -----Original Message----- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: 16 December 2005 22:46 To: CF-Talk Subject: Reversing an HTMLCodeFormat string. Is there an easy way to reverse a string that has been HTMLCodeFormat'ed? To turn "<strong>" back to "<strong>" I have a couple of thousand lines of string like this to convert. -------------- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA "C code. C code run. Run code run. Please!" - Cynthia Dunning ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:227212 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=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54