The correct way of doing this is is by taking advantage of jQuery's HTML constructor to perform all the necessary escaping for you:
$("a").click(function() {
var id= $(".id").html();
// create new element
$('', {
class:'new',
id: id,
text: 'jitend'
}).appendTo('.html'); // and append it
});