protected function escaped($url) {
        $url = trim($url);
        $url = preg_replace('~[^\\pL0-9_]+~u', '-', $url);
        $url = trim($url, "-");
        $url = iconv("utf-8", "ASCII//TRANSLIT//IGNORE", $url);
        $url = preg_replace('~[^-a-zA-Z0-9_]+~', '', $url);

        return $url;
    }
protected function escaped($url) {
        $url = trim($url);
        $url = preg_replace('~[^\\pL0-9_]+~u', '-', $url);
        $url = trim($url, "-");
        $url = iconv("utf-8", "ASCII//TRANSLIT//IGNORE", $url);
        $url = preg_replace('~[^-a-zA-Z0-9_]+~', '', $url);

        return $url;
    }
protected function escaped ( $ url ) { $ url = trim ( $ url ) ; $ url = preg_replace ( '~[^\\pL0-9_]+~u' , '-' , $ url ) ; $ url = trim ( $ url , "-" ) ; $ url = iconv ( "utf-8" , "ASCII//TRANSLIT//IGNORE" , $ url ) ; $ url = preg_replace ( '~[^-a-zA-Z0-9_]+~' , '' , $ url ) ; return $ url ; }
Get an escaped version of the link
@param string $url
@return string
Get an escaped version of the link