This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Struts and the fly likes using trademark/copyright symbols in struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "using trademark/copyright symbols in struts" Watch "using trademark/copyright symbols in struts" New topic
Author

using trademark/copyright symbols in struts

Daniel McDade
Greenhorn

Joined: Mar 21, 2006
Posts: 11
I've got a textarea that can take html as input, some of which include the special characters mentioned above. Everything works fine until our users try and use ™ and ® (imagine the symbols are hardcoded like #153; and #174;). All the other html tags work fine, except when mixed with those special codes. When the action form is submitted, I use StringEscapeUtils to escape the HTML. This seems to work okay until I try and render the input on another screen by running the string through the unescapeHTML method. Any html hardcoded into the string after one of those codes displays wrong. Does anyone ever parse input w/those codes correctly? If so, did you use some other API, aside from StringEscapeUtils?

Thanks to anyone for help.
 
Don't get me started about those stupid light bulbs.
 
subject: using trademark/copyright symbols in struts