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
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.
I agree. Here's the link:
subject: Grails question
It's not a secret anymore!