Dear all,
I am using a ListGrid.
If this data is containg XML like text, e.g. <n.a.>, the browser is hiding this data, because it interpretes this text as an unknown HTML tag.
Is it possible to define a mode for a ListGrid field which says: this represents raw text, if it contains special HTML characters, escape it before dumping on screen?
I know a similar thing in Struts. When you are using the write tag, you can specify by an attribute, if the data should filtered.
I would like to avoid escaping the data manually (e.g by record.setAttribute("xxx", escape(data))...
The problem with this solution is: If the cells are editable, I have to convert it back if the user starts edit mode for a field and vice versa.
Do you have any suggestions?
Thank you very much.
Best Regards
Uwe
I am using a ListGrid.
If this data is containg XML like text, e.g. <n.a.>, the browser is hiding this data, because it interpretes this text as an unknown HTML tag.
Is it possible to define a mode for a ListGrid field which says: this represents raw text, if it contains special HTML characters, escape it before dumping on screen?
I know a similar thing in Struts. When you are using the write tag, you can specify by an attribute, if the data should filtered.
I would like to avoid escaping the data manually (e.g by record.setAttribute("xxx", escape(data))...
The problem with this solution is: If the cells are editable, I have to convert it back if the user starts edit mode for a field and vice versa.
Do you have any suggestions?
Thank you very much.
Best Regards
Uwe
Comment