src/PHPHtmlParser/Content.php
public function copyByToken(string $token, bool $char = false, bool $escape = false)
    {
        $string = $this->$token;

        return $this->copyUntil($string, $char, $escape);
    }
public function copyByToken(string $token, bool $char = false, bool $escape = false)
    {
        $string = $this->$token;

        return $this->copyUntil($string, $char, $escape);
    }
public function copyByToken ( string $ token , bool $ char = false , bool $ escape = false ) { $ string = $ this -> $ token ; return $ this -> copyUntil ( $ string , $ char , $ escape ) ; }
Copies the content until it reaches the token string.,

@param string $token
@param bool $char
@param bool $escape
@return string
@uses $this->copyUntil()
Copies the content until it reaches the token string .