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 Other Application Frameworks and the fly likes Grails question 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 » Other Application Frameworks
Bookmark "Grails question" Watch "Grails question" New topic
Author

Grails question

Higgledy Smith
Ranch Hand

Joined: Mar 07, 2006
Posts: 192
This is a question about double quotes in textArea form

My domain contains a description field, for free text entry in a form.

Suppose an object of my domain has description text which contains text that include double quotes.
The double quotes display correctly in the "Show View" but in the "Edit View" the double quotes display like this: "& quot ;" (I added spaces so that it displays the words and not the symbols.)

Why does this happen and how do I fix it?

Thank you.
Hongli Li
Ranch Hand

Joined: Oct 29, 2006
Posts: 124
use decodeHTML to your bean property i.g domain.description.decodeHTML()


Do you know why this cup is useful? Because it is empty.
 
 
subject: Grails question