maybe render html on error and replace the html in the dialog to better mark the error .