url, 'javascript:void(0);') || strpos($this->url, 'javascript:;')) { $this->url = substr($this->url, 1); } if (filter_var($this->url, FILTER_VALIDATE_URL) && (strpos($this->url, 'javascript:void(0);') || strpos($this->url, 'javascript:;'))) { $this->url = parse_url($this->url, PHP_URL_PATH); $this->url = substr($this->url, 1); } $attributes = new Attributes(['href' => $this->url]); $attributes->mergeWith($this->htmlAttributes); return $this->prepend . "{$this->text}" . $this->append; } }