Ejemplo n.º 1
0
function Html2Text($str, $r = 0)
{
    if (!function_exists('SpHtml2Text')) {
        require_once DEDEINC . "/inc/inc_fun_funString.php";
    }
    if ($r == 0) {
        return SpHtml2Text($str);
    } else {
        $str = SpHtml2Text(stripslashes($str));
        return addslashes($str);
    }
}
Ejemplo n.º 2
0
function videoContent()
{
    global $post, $posts;
    $a = SpHtml2Text($post->post_content);
    $a = preg_replace('/\\[(youku|tudou|56|flash) (id=\\"(.*)\\"|url=\\"(.*)\\"|w=\\"([0-9]*)\\"|h=\\"([0-9]*)\\")\\]/i', '', $a);
    return $a;
}