protected function title($element, $removable = '')
    {
        $converter = new Converter;

        $crawler = $this->crawler->filter($element);

        $html = $crawler->first()->html();

        $html = str_replace($removable, '', $html);

        return $converter->convert((string) $html);
    }
protected function title($element, $removable = '')
    {
        $converter = new Converter;

        $crawler = $this->crawler->filter($element);

        $html = $crawler->first()->html();

        $html = str_replace($removable, '', $html);

        return $converter->convert((string) $html);
    }
protected function title ( $ element , $ removable = '' ) { $ converter = new Converter ; $ crawler = $ this -> crawler -> filter ( $ element ) ; $ html = $ crawler -> first ( ) -> html ( ) ; $ html = str_replace ( $ removable , '' , $ html ) ; return $ converter -> convert ( ( string ) $ html ) ; }
Returns the title text based from given HTML tag.

@param  string $element
@param  string $removable
@return string
Returns the title text based from given HTML tag .