I have a field Value for segmentations as <Value TBD>
, which is not getting printed in the HTML table.
This is the way I'm trying to populate the value:
if($("th[data-field='rating']").get(0) !== undefined) {
debugger;
row.append($("<td />").css("font-size", "12px").html(""+segmentations+""));
}
It is taking other normal character values like 'Adoption' but not able to print <Value TBD>
. Is there any way to escape this '<' characters inside </tr>
tag?
, If i only use .text(""+segmentations+"") without .html(), it will show me the tags, and if i only use both then the table css is getting disturbed