I am using jQuery Dialog to display some text with HTML tag enabled:
<div id="dialog" style="display: none"> <p id='infoShow'></p> </div>
JQuery that displays data:
function test(element) { $("#infoShow").html($(".gLine", $(element).closest("tr")).html()); $("#dialog").dialog({ title: "View Guideline", buttons: { Ok: function () { $(this).dialog('close'); } }, modal: true, width: "450px" }); }
It is called by ASP LinkButton:
<asp:LinkButton runat="server" ID="btnShow3" CssClass="btnSearch3" Text="VIEW" OnClientClick="javascript:test(this);return false;"></asp:LinkButton>
Although I use .html() to output the output, it still shows HTML tags instead of the output:

How can I change the code to generate an HTML tag instead of just displaying as plain text?
SearchForKnowledge Sep 24 '14 at 1:51 2014-09-24 01:51
source share