src/MalScraper/Model/General/CharacterModel.php
private function getAbout()
    {
        $html = $this->_parser->find('#content table tr', 0)->find('td', 0)->next_sibling();

        preg_match('/(<div class="normal_header" style="height: 15px;">).*(<div class="normal_header">)/', $html, $about);

        $html = $html->find('div[class=normal_header]', 0);
        $about = str_replace($html->outertext, '', $about[0]);
        $about = str_replace('<div class="normal_header">', '', $about);

        preg_match('/(No biography written)/', $about, $temp_about);
        if (!$temp_about) {
            $about = str_replace(['<br>', '<br />', '  '], ["\n", "\n", ' '], $about);
            $about = strip_tags($about);

            return preg_replace('/\n[^\S\n]*/', "\n", $about);
        } else {
            return;
        }
    }
private function getAbout()
    {
        $html = $this->_parser->find('#content table tr', 0)->find('td', 0)->next_sibling();

        preg_match('/(<div class="normal_header" style="height: 15px;">).*(<div class="normal_header">)/', $html, $about);

        $html = $html->find('div[class=normal_header]', 0);
        $about = str_replace($html->outertext, '', $about[0]);
        $about = str_replace('<div class="normal_header">', '', $about);

        preg_match('/(No biography written)/', $about, $temp_about);
        if (!$temp_about) {
            $about = str_replace(['<br>', '<br />', '  '], ["\n", "\n", ' '], $about);
            $about = strip_tags($about);

            return preg_replace('/\n[^\S\n]*/', "\n", $about);
        } else {
            return;
        }
    }
private function getAbout ( ) { $ html = $ this -> _parser -> find ( '#content table tr' , 0 ) -> find ( 'td' , 0 ) -> next_sibling ( ) ; preg_match ( '/(<div class="normal_header" style="height: 15px;">).*(<div class="normal_header">)/' , $ html , $ about ) ; $ html = $ html -> find ( 'div[class=normal_header]' , 0 ) ; $ about = str_replace ( $ html -> outertext , '' , $ about [ 0 ] ) ; $ about = str_replace ( '<div class="normal_header">' , '' , $ about ) ; preg_match ( '/(No biography written)/' , $ about , $ temp_about ) ; if ( ! $ temp_about ) { $ about = str_replace ( [ '<br>' , '<br />' , '  ' ] , [ "\n" , "\n" , ' ' ] , $ about ) ; $ about = strip_tags ( $ about ) ; return preg_replace ( '/\n[^\S\n]*/' , "\n" , $ about ) ; } else { return ; } }
Get character about.

@return string
Get character about .