I am parsing a JSON object and displaying the data into a table. However, some of this data has brackets like this < , > , >= , <= followed by either a letter or a number. In this case, the data from JSOn looks like this:
(rRandomString<iamNotaTAG)
and the resulting html after appending it is this:
(rRandomString
<iamNotaTAG) td="" <=""></<iamNotaTAG)>
Update 1: The code I am using to parse the JSON is this
var json = $.parseJSON(data);
for (var i = 0, maxlength = json.length; i < maxlength; i += 1 ) {
my_string = json[i][1];
result += "<tr class='my_result'>"
+ "<td>"+my_string+"</td></tr>"
}
$('#my_table tbody').html(result);