Graby\SiteConfig\SiteConfig::parser PHP Method

parser() public method

Which parser to use for turning raw HTML into a DOMDocument (either 'libxml' or 'html5lib').
public parser ( boolean $use_default = true ) : string | null
$use_default boolean
return string | null
    public function parser($use_default = true)
    {
        if ($use_default) {
            return isset($this->parser) ? $this->parser : $this->default_parser;
        }
        return $this->parser;
    }