public static function extractHtmlPart($html, $filter = false)
        {
            if ($filter) {
                $startTag = "<{$filter}>";
                $endTag = "</{$filter}>";
            } else {
                $startTag = "<body>";
                $endTag = "</body>";
            }
            $startPattern = ".*" . $startTag;
            $endPattern = $endTag . ".*";

            $noheader = eregi_replace($startPattern, "", $html);

            $cleanPart = eregi_replace($endPattern, "", $noheader);

            return $cleanPart;
        }