src/MalScraper/Model/MainModel.php
public static function getParser($url, $contentDiv, $additionalSetting = false)
    {
        $html = HtmlDomParser::file_get_html($url)->find($contentDiv, 0);
        $html = !$additionalSetting ? $html : $html->next_sibling();
        $html = $html->outertext;
        $html = str_replace('&quot;', '\"', $html);
        $html = str_replace('&lt;', '&l-t;', $html); // handle '<'
        $html = html_entity_decode($html, ENT_QUOTES, 'UTF-8');
        $html = str_replace('&l-t;', '&lt;', $html);
        $html = HtmlDomParser::str_get_html($html);

        return $html;
    }
public static function getParser($url, $contentDiv, $additionalSetting = false)
    {
        $html = HtmlDomParser::file_get_html($url)->find($contentDiv, 0);
        $html = !$additionalSetting ? $html : $html->next_sibling();
        $html = $html->outertext;
        $html = str_replace('&quot;', '\"', $html);
        $html = str_replace('&lt;', '&l-t;', $html); // handle '<'
        $html = html_entity_decode($html, ENT_QUOTES, 'UTF-8');
        $html = str_replace('&l-t;', '&lt;', $html);
        $html = HtmlDomParser::str_get_html($html);

        return $html;
    }
public static function getParser ( $ url , $ contentDiv , $ additionalSetting = false ) { $ html = HtmlDomParser :: file_get_html ( $ url ) -> find ( $ contentDiv , 0 ) ; $ html = ! $ additionalSetting ? $ html : $ html -> next_sibling ( ) ; $ html = $ html -> outertext ; $ html = str_replace ( '&quot;' , '\"' , $ html ) ; $ html = str_replace ( '&lt;' , '&l-t;' , $ html ) ; // handle '<' $ html = html_entity_decode ( $ html , ENT_QUOTES , 'UTF-8' ) ; $ html = str_replace ( '&l-t;' , '&lt;' , $ html ) ; $ html = HtmlDomParser :: str_get_html ( $ html ) ; return $ html ; }
Get trimmed HtmlDomParser class.

@param string $url        URL of full MyAnimeList page
@param string $contentDiv Specific area to be parsed

@return \simplehtmldom_1_5\simple_html_dom
Get trimmed HtmlDomParser class .