Description
from Component#String getModelObjectAsString(Object):
==
if (getFlag(FLAG_ESCAPE_MODEL_STRINGS))
{
// Escape it
return Strings.escapeMarkup(modelString, false, true).toString();
}
return modelString;
==
As you can see, we have two options.
1) Output will be html-escaped and all non-7 bit characters will be replaced with &#....; codes.
2) Nothing will be escaped.
These might be enough for ASCII-speaking people but not very friendly for others.
We need third option:
escape html-sensitive characters (&, <, >, etc) and do not modify all other characters because it is very difficult to view html-escaped page source and search engines are not happy with it.
This can be done by replacing if {} body with following code:
return Strings.escapeMarkup(modelString, false, false).toString();
Maybe some additional flag could be added in order to support such behavior?
Hope this will be fixed.