Actually, the underlying template (text.vm for TextFieldTag) calls $webwork.htmlEncode() on all the values printed out. Maybe you have other templates in your web app that are overriding those?
Also, note that the escaping has caused quite a bit of a problem for some people -- but I think I can fix it and retain 1.4 compatibility all while keeping $webwork.htmlEncode(). -Pat -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Anoop Ranganath Sent: Wednesday, November 19, 2003 2:13 PM To: [EMAIL PROTECTED] Subject: Re: [OS-webwork] escaping text in text fields I'm looking in the code, and it appears that PropertyTag is the only UI tag that supports escaping. The TextFieldTag doesn't make any attempt to escape as far as I can see. Anoop On Nov 19, 2003, at 3:54 PM, Jason Carreira wrote: > It's supposed to be escaping them... Which version are you using, the > new beta2? > >> -----Original Message----- >> From: Anoop Ranganath [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, November 19, 2003 3:16 PM >> To: [EMAIL PROTECTED] >> Subject: [OS-webwork] escaping text in text fields >> >> >> We're having an issue with our WW2 application and we're not sure >> whether it's a bug or a feature. >> >> In a text field, enter ® and click Save once. It returns >> us to the >> form, but now instead of the text ® we see the Registered >> symbol. >> Viewing the source of the web page, shows that it is still showing up >> as ® and the browser is rendering the Registered symbol. Click >> Save again without changing anything, and you still see the >> Registered >> symbol, and in the source of the web page, we are seeing the >> registered >> symbol also. >> >> Checking the database, we see that the first save puts in the >> ® and >> the second save puts in the Registered symbol. >> >> Problems also occur with putting HTML into text fields. >> >> So the question is, is it's WW2's responsibility to escape >> text in the >> text tags when displaying them on the screen? I would say "Yes" but >> that's probably because of the side of the fence I'm sitting on. At >> the same time, clicking Save without changing anything on the form >> shouldn't result in a database change. >> >> Opinions? >> >> Anoop >> >> >> >> ------------------------------------------------------- >> This SF.net email is sponsored by: SF.net Giveback Program. >> Does SourceForge.net help you be more productive? Does it >> help you create better code? SHARE THE LOVE, and help us >> help YOU! Click Here: http://sourceforge.net/donate/ >> _______________________________________________ >> Opensymphony-webwork mailing list >> [EMAIL PROTECTED] >> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork >> > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork