With dialog special.js modified html-txt-html conversion, because it was too strict for the purpose of dialog.