Good question and answer. (+1)
I just thought I'd add that if you need to enter HTML into a modal dialog, you might need to study the Javascript library to execute it. I used Dojo " dijit.Dialog " several times with HTML, including images, form controls, etc. You can style it as you like, and it works well in a cross browser.
You can check out a few examples of using dijit.Dialog in DojoCampus .
Greetings.
source share