public function allowProtocol($protocol)
    {
        if (is_array($protocol))
        {
            foreach ($protocol as $proto)
                $this->allowed_protocols[$proto] = true;
        }
        else
            $this->allowed_protocols[$protocol] = true;
        return $this;
    }
public function allowProtocol($protocol)
    {
        if (is_array($protocol))
        {
            foreach ($protocol as $proto)
                $this->allowed_protocols[$proto] = true;
        }
        else
            $this->allowed_protocols[$protocol] = true;
        return $this;
    }
public function allowProtocol ( $ protocol ) { if ( is_array ( $ protocol ) ) { foreach ( $ protocol as $ proto ) $ this -> allowed_protocols [ $ proto ] = true ; } else $ this -> allowed_protocols [ $ protocol ] = true ; return $ this ; }
Add a protocol to the list of protocols to allow linking to.
@param $protocl string|array The protocol to add to the whitelist.
Can also be an array to add multiple protocols.
@return SafeHTML Provides fluent interface
Add a protocol to the list of protocols to allow linking to .