I am trying something like
var template = new Object();
template.DescriptionHTML ='*html content goes in here*'
This is why:
When the user clicks on a button a popup window opens where he/she can enter html text using a WYSIWYG editor. When they click submit, I want to pass the HTML content to the parent page using jQuery. Now this works if I am passing plain text from pop up to parent. But if I try to pass HTML it breaks. I don't want to escape the HTML characters because in the parent page I want to display the HTML content. How can this be done?
I am aware of alternatives such as posting back the parent page and getting the updated content. But I would appreciate if the responses can be limited to making the above scenario work.