Hi All,
I have below snippet of code, expecting to have html page render anchor element whereas it shows as string value.
what am I missing, please help me.
var lineStartTemplate = $.template('<div class="line"> <span class="name">${name}</span></div>');
var wfDocName='<a href="#" onclick="javascript: viewWfDoc(\'' + clientReq.relatedContentID + '\'); return false">' + documentName + '</a>';
var tItem = {name : wfDocName};
var value1 = $.tmpl(lineStartTemplate, tItem);
container.append(value1[0].innerHTML);
OUTPUT page
<a href="#" onclick="javascript: viewWfDoc('RA11'); return false">Abhilasha123_567 > Abhilasha13456-</a>