PDA

View Full Version : How to escape special characters while loading the tree data in the tree panel



kanthu509
1 Aug 2012, 9:25 PM
Hi,

I'm unable to load the data wen it has the special characters..I want to escape the special characters..
For example if it has <bi> as data i have to get the output as <bi> only..
Here i have to load the tree data dynamically..


Thanks,
Srikanth.B

scottmartin
2 Aug 2012, 8:22 AM
Have a look at htmlEncode:
http://docs.sencha.com/ext-js/4-1/#!/api/Ext.String-method-htmlEncode

Scott.