-
20 Apr 2011 7:40 AM #1
How to escape html code in Grid and RowExpander???
How to escape html code in Grid and RowExpander???
Hi, i'm using a Grig<Bean> with a RowExpander;
The beans shown has a property that contains html code like <a>My link</a>
I want to display the html code like in a blockquote (escaping active links and images)! I tought to use a GridCellRenderer to escape the value in the grid's row , and a Xtemplate to escape code in the RowExpander!
i try to do for the expander:
but the escape doesn't works..! Where shown active links and not found images contained in the code...Code:XTemplate tpl = XTemplate.create(" <p><b>Name:</b> {name}</p><br><p><b>Value:</b> <code>{value}</code> </p> "); RowExpander expander = new RowExpander(); expander.setTemplate(tpl); configs.add(expander);
I think that is not so hard to solve...
Have you any ideas???
Tnx
Similar Threads
-
html escape values
By muncher in forum Ext 3.x: Help & DiscussionReplies: 0Last Post: 11 Apr 2011, 9:35 AM -
escape HTML
By r4nd7263 in forum Ext GWT: DiscussionReplies: 1Last Post: 13 Jul 2010, 9:35 AM -
[FIXED-9] Code generation does not escape ' (single quote)
By ExtKD in forum Ext Designer: BugsReplies: 4Last Post: 30 Mar 2010, 5:59 PM -
HTML in grid plugin RowExpander?
By piston in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 23 Apr 2008, 8:23 PM -
Escape html in grid data
By super_drone in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 16 Feb 2008, 5:59 PM


Reply With Quote