protected function getHtmlDescription($html)
    {
        $content = '';
        $doc = new \DOMDocument;
        @$doc->loadHTML($html);
        $xpath = new \DOMXPath($doc);

        $query = '//p[preceding-sibling::p]';

        foreach ($xpath->query($query) as $node) {
            $content .= trim($node->textContent, PHP_EOL);
        }

        return $content;
    }
protected function getHtmlDescription($html)
    {
        $content = '';
        $doc = new \DOMDocument;
        @$doc->loadHTML($html);
        $xpath = new \DOMXPath($doc);

        $query = '//p[preceding-sibling::p]';

        foreach ($xpath->query($query) as $node) {
            $content .= trim($node->textContent, PHP_EOL);
        }

        return $content;
    }
protected function getHtmlDescription ( $ html ) { $ content = '' ; $ doc = new \ DOMDocument ; @ $ doc -> loadHTML ( $ html ) ; $ xpath = new \ DOMXPath ( $ doc ) ; $ query = '//p[preceding-sibling::p]' ; foreach ( $ xpath -> query ( $ query ) as $ node ) { $ content .= trim ( $ node -> textContent , PHP_EOL ) ; } return $ content ; }
Get's a brief description about the html string provided
@param String $html
@return String
Get s a brief description about the html string provided