Reputation: 12695
the preview
variable contains the HTML code. I want to display that code rendered, but is is being rendered as a raw text, why ?
$("#pdf-dialog").dialog("option" , 'open' , function() {
@if (!string.IsNullOrEmpty(preview))
{
<text>
$("#pdf-dialog").html("@preview");
</text>
}
});
Upvotes: 0
Views: 106