I probably should have been a little clearer. Also, as I've dug in a little deeper, I found a better place to put this snippet. I've now modified the getBody function and it seems to be working rather well.
Here is what my getBody function looks like:
function getBody($mid) {
$body ='';
if(!($body = $this->getpart($mid,'TEXT/PLAIN',$this->charset))) {
if(($body = $this->getPart($mid,'TEXT/HTML',$this->charset))) {
//Convert tags of interest before we striptags
$body=str_replace("</DIV><DIV>", "\n", $body);
$body=str_replace(array("<br>", "<br />", "<BR>", "<BR />"), "\n", $body);
$body=Format:($body); //Strip tags??
$strsplit = str_split($body);
foreach ( $strsplit as $str )
{
if ( ord($str) < 128 )
{
$clean_body .= $str;
}
}
$body = $clean_body;
}
}
return $body;
}