Display raw HTML/XML in table
Display raw HTML/XML in table
blahblahblah
Posts: 1Questions: 0Answers: 0
Hi,
I am trying to display xml inside a cell but it strips all the xml tags, is there a way to get it to display?
[code]
"aoColumns": [
{ "mDataProp": "DateReceived", "sType": 'date' },
{ "mDataProp": "MessageBody",
"fnRender": function (oObj) { alert('' + oObj.aData.MessageBody + ''); return '' + oObj.aData.MessageBody + ''; }
},
{ "mDataProp": "LastError" },
{ "mDataProp": null }
[/code]
The alert for each row shows the data as it should be with xml tags but when it gets put in the table it's had the tags removed, any ideas?
Thanks
I am trying to display xml inside a cell but it strips all the xml tags, is there a way to get it to display?
[code]
"aoColumns": [
{ "mDataProp": "DateReceived", "sType": 'date' },
{ "mDataProp": "MessageBody",
"fnRender": function (oObj) { alert('' + oObj.aData.MessageBody + ''); return '' + oObj.aData.MessageBody + ''; }
},
{ "mDataProp": "LastError" },
{ "mDataProp": null }
[/code]
The alert for each row shows the data as it should be with xml tags but when it gets put in the table it's had the tags removed, any ideas?
Thanks
This discussion has been closed.
Replies
Allan
Please give me your code about using innerHTML to show special data like "<", "&", "<". I try, but i cann't do.
Thanks!