Hi everyone,
Application type: Mobile
Titanium SDK: 3.1.0
Platform & version: android 2.2 and above and iOS 4 and above
Device: iOS simulator, Android emulator
Host Operating System: OSX 10.8, Windows 7
Titanium Studio: 3.0.0.201212131639
I am able to call the description tag in an event listener as below
row.description = item.getElementsByTagName("description").item(0).text;
tableview.addEventListener('click',function(e) { //create a new Window var w = Ti.UI.createWindow({ title:e.row.children[0].text, backgroundColor:'#fff', color:"#000", }); var sv = Ti.UI.createScrollView({ backgroundColor:'#fff', width: Ti.UI.FILL, height: Ti.UI.FILL }); var l = Ti.UI.createLabel({ backgroundColor:'#fff', width: "100%", height: Ti.UI.SIZE, text:e.row.children[0].text, color:'#000', top:15, font:{fontFamily:'Trebuchet MS',fontWeight:'bold'} }); var la = Ti.UI.createLabel({ backgroundColor:'#fff', width: "100%", title:title, height: Ti.UI.SIZE, text:e.row.description, color:'#000', top:100, }); sv.add(la); sv.add(l); w.add(sv); w.open({modal:true}); });My description tag is having some html tags like image, br, div etc.. how to parse these html tags?
Any help will be grateful.. thank you