I am getting myList from database and append it to my table.
$.each(myList, function (index, data) {
var row = '<tr>';
row = row
'<td class="action"><a href=\'#\' title=\'Edit Note\' onclick="showPopup(' + '\'' + note.RID + '\'); return false;" ><img width=\'25\' height=\'20\' src=\'../images/text-editor.png\' /></a></td>'
+ '</tr>';
$('#tblNotes').append(row);
});
if the value of row comes from database is a script then how to show it on my table without executing the script?
One solution is, we can remove the script tag. like this:
row = row.replace("<script>", "");
row = row.replace("</script>", "");
But I don't want it. I have to show the exact value.