public function getEmail($antispam = false)
    {
        $email = $this->getImprintValue('email');
        if (!$email) {
            return '';
        }

        if (!$antispam) {
            return $email;
        }

        $parts = explode('@', $email);
        if (count($parts) != 2) {
            return $email;
        }

        $html = '<a href="#" onclick="toRecipient();">';
        $html .= $parts[0];
        $html .= '<span class="no-display">nospamplease</span>@<span class="no-display">nospamplease</span>';
        $html .= $parts[1];
        $html .= '</a>';
        $html .= $this->getEmailJs($parts);

        return $html;
    }
public function getEmail($antispam = false)
    {
        $email = $this->getImprintValue('email');
        if (!$email) {
            return '';
        }

        if (!$antispam) {
            return $email;
        }

        $parts = explode('@', $email);
        if (count($parts) != 2) {
            return $email;
        }

        $html = '<a href="#" onclick="toRecipient();">';
        $html .= $parts[0];
        $html .= '<span class="no-display">nospamplease</span>@<span class="no-display">nospamplease</span>';
        $html .= $parts[1];
        $html .= '</a>';
        $html .= $this->getEmailJs($parts);

        return $html;
    }
public function getEmail ( $ antispam = false ) { $ email = $ this -> getImprintValue ( 'email' ) ; if ( ! $ email ) { return '' ; } if ( ! $ antispam ) { return $ email ; } $ parts = explode ( '@' , $ email ) ; if ( count ( $ parts ) != 2 ) { return $ email ; } $ html = '<a href="#" onclick="toRecipient();">' ; $ html .= $ parts [ 0 ] ; $ html .= '<span class="no-display">nospamplease</span>@<span class="no-display">nospamplease</span>' ; $ html .= $ parts [ 1 ] ; $ html .= '</a>' ; $ html .= $ this -> getEmailJs ( $ parts ) ; return $ html ; }
Try to limit spam by generating a javascript email link

@param boolean true
@return string
Try to limit spam by generating a javascript email link