tags in the form. Without them, IE8 will attempt to display the page as XML. $rawsource = $_REQUEST['body_html']; $SugarTiny = new SugarTinyMCE(); $rawsource = $SugarTiny->cleanEncodedMCEHtml($rawsource); $html = from_html($rawsource); if (stripos($html, ""; } $file = $dir_path.'WebToLeadForm_'.time().'.html'; $fp = sugar_fopen($file,'wb'); fwrite($fp, $html); fclose($fp); } $xtpl=new XTemplate ('modules/Campaigns/WebToLeadDownloadForm.html'); $xtpl->assign("MOD", $mod_strings); $xtpl->assign("APP", $app_strings); $webformlink = "$mod_strings[LBL_DOWNLOAD_TEXT_WEB_TO_LEAD_FORM]
"; $webformlink .= "$mod_strings[LBL_DOWNLOAD_WEB_TO_LEAD_FORM]"; $xtpl->assign("LINK_TO_WEB_FORM",$webformlink); if ($rawsource !== false) { $xtpl->assign("RAW_SOURCE", $rawsource); $xtpl->parse("main.copy_source"); } $xtpl->parse("main"); $xtpl->out("main"); ?>