of course I screwed up my own code. try the below, with and without htmlEditFormat around the client.title=form.title
-----Original Message----- From: Loathe [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 27, 2005 8:40 PM To: CF-Community Subject: RE: Annoying Client/Quotes issue It gets lost when it's written back into a form. page1.cfm <cfparam name="attributes.title" default=""> <cfparam name="attributes.body" default =""> <cfif isDefined('client.title')> <cfset attributes.title = client.title> <cfset attributes.body = client.body> </cfif> <form action="page2.cfm" method="post" name="testForm"> <input name="title" value="#attributes.title#" /> <br /> <textarea name="body">#attributes.body#</textarea> <br /> <input type="submit" name="act" value="preview" /> <br /> <input type="submit" name="act" value="save" /> </form> page2.cfm <cfswitch expression="#form.act#"> <cfcase value="save"> <!--- if it's a save do this logic/query or whatever ---> </cfcase> <cfcase value="preview"> <!--- since it's a preview write it to the client scope ---> <cfset client.title = htmlEditFormat(form.title)> <cfset client.body = htmlRditFormat(form.body)> </cfcase> </cfswitch> <cfoutput> <strong>#form.title#</strong? <br /> #paragraphFormat(form.body)# <br /> </cfoutput> <a href="page1.cfm">Edit</a> See what I am getting at now? By the way this is very much simplified right now. Tim -----Original Message----- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 27, 2005 8:46 PM To: CF-Community Subject: RE: Annoying Client/Quotes issue > Ok, but if we don't do that than we loose > everything after the fir double quote " I need to see more code... the only way that should ever happen is if the variable is being transferred via a form element... here's your test case: <cfsavecontent variable="client.testvar"> this"is"some"content"with"double"quotes"in"it </cfsavecontent> <cflocation url="nextpage.cfm"> nextpage.cfm <cfoutput>#htmleditformat(client.testvar)#</cfoutput> s. isaac dealey 954.522.6080 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.fusiontap.com http://coldfusion.sys-con.com/author/4806Dealey.htm ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:5:166864 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/5 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:5 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.5 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
