File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Grails question" Watch "Grails question" New topic

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.
wood burning stoves
subject: Grails question
Similar Threads
How to tackle simultaneous updates done by different user to a single webpage
Why This Compiler Error?
Problem in inserting special characters
create a js array on the server-side
setting the entered value in a text field to a variable