src/ExternalURL.php
public function Nice()
    {
        if ($this->value && $parts = parse_url($this->URL())) {
            $remove = array('scheme', 'user', 'pass', 'port', 'query', 'fragment');
            foreach ($remove as $part) {
                unset($parts[$part]);
            }

            return rtrim(http_build_url($parts), "/");
        }
    }
public function Nice()
    {
        if ($this->value && $parts = parse_url($this->URL())) {
            $remove = array('scheme', 'user', 'pass', 'port', 'query', 'fragment');
            foreach ($remove as $part) {
                unset($parts[$part]);
            }

            return rtrim(http_build_url($parts), "/");
        }
    }
Remove ugly parts of a url to make it nice