I have a function that builds a string of html
, then uses the jquery.html()
method to insert that string of html. I would expect the result for the page to show just the output text, but instead everything is displayed, even the tags.
function updateTableCell(){
var removeDocForm = "<form action='"+docRemoveTarget+"'><a>remove</a></form><br>"
$('table tr').eq(docRowCount).find('td').eq(4).html(removeDocForm);
}
I would expect just remove
would show up when I render the page, but instead I see
<form action='docRemoveTarget'><a>remove</a></form><br>