function showexcerpt($content, $maxchars, $openWindow, $stripAll, $thisLink, $adjustImageSize, $float, $noFollow, $mediaImage, $catID = 0, $stripSome = 0)
{
    global $ftp;
    global $morestyle;
    $content = CleanHTML($content);
    if ($stripAll == 1) {
        $content = strip_tags(html_entity_decode($content));
        $content = limitwords($maxchars, $content);
    } else {
        if ($ftp == 1) {
            $content = html_entity_decode(pre_esc_html($content));
        } else {
            if ($maxchars != 99) {
                $content = strip_tags(html_entity_decode($content), '<a><img><p>');
            }
        }
        if ($maxchars != 99) {
            $content = findalignImage($maxchars, $content, $adjustImageSize, $float, $openWindow, $mediaImage, $thisLink, $noFollow, $catID, $stripSome);
        }
    }
    $content = str_replace("<a ", "<a  " . $openWindow . ' ' . ($noFollow == 1 ? 'rel="nofollow"  ' : ''), $content);
    $content = str_replace($morestyle, "<a href=\"" . $thisLink . "\" " . $openWindow . ' ' . ($noFollow == 1 ? 'rel="nofollow"' : '') . " id=\"rssmore\">" . $morestyle . "</a>", $content);
    return $content;
}
function showexcerpt($content, $maxchars, $openWindow, $stripAll, $thisLink, $adjustImageSize, $float, $noFollow, $mediaImage, $catID = 0, $stripSome = 0, $feedHomePage = Null, $noProcess = 0, $useMediaImage = 0)
{
    $content = rssmi_strip_read_more($content);
    global $ftp;
    global $morestyle;
    $content = CleanHTML($content, $thisLink);
    if ($noProcess == 0) {
        if ($stripAll == 1) {
            $content = strip_tags(html_entity_decode($content));
            $content = limitwords($maxchars, $content);
        } else {
            if ($ftp == 1) {
                //	$content=html_entity_decode(pre_esc_html($content));
                $content = html_entity_decode(pre_esc_html($content), ENT_QUOTES, 'UTF-8');
                //	$content=pre_esc_html($content);
            } else {
                if ($maxchars != 99) {
                    $content = strip_tags(html_entity_decode($content), '<a><img><p><br>');
                }
            }
            $content = findalignImage($maxchars, $content, $adjustImageSize, $float, $openWindow, $mediaImage, $thisLink, $noFollow, $catID, $thisLink, $stripSome, $useMediaImage);
        }
    }
    $content = str_replace("<a ", "<a  " . $openWindow . ' ' . ($noFollow == 1 ? 'rel="nofollow"  ' : ''), $content);
    if ($ftp != 1 && $morestyle != '' || $ftp == 1 && $morestyle != "NONE") {
        $content = str_replace($morestyle, "<a href=\"" . $thisLink . "\" " . $openWindow . ' ' . ($noFollow == 1 ? 'rel="nofollow"' : '') . " id=\"rssmi_more\">" . $morestyle . "</a>", $content);
    }
    if ($noFollow == 1) {
        $content = dont_follow_links($content);
    }
    return $content;
}