when i generate text from database using datatables in asp.net c#, i can generate this "<a href='javascript:txtreplace('text to replace')'>" + lbltext.Text + "</a>"
output is
<a onclick='txtreplace('text to replace')'>text</a>
but is in not working on webpage, it is noly working when onclick is in Ddouble quote like <a onclick="txtreplace('text to replace')">text</a>
how to generate text with double quote in "onclick" from database or any other solution to access javascript function