/**
  * Converte o elemento com maior probabilidade de
  * ser o container do conteúdo em plain text.
  */
 protected function setText()
 {
     if ($this->bigger) {
         $this->set('text', $this->preStringProccess(SpiderDom::toText($this->bigger)));
     } else {
         $this->set('text', null);
     }
 }
 /**
  * @dataProvider providerTrashTags()
  */
 public function testRemoveTrashBlock($block, $expected)
 {
     $this->AssertEquals($expected, trim(SpiderDom::removeTrashBlock($block)));
 }
 public function saveDomToTxtFile(\DOMElement $e, $slug, $title = null)
 {
     $file = $this->getFileRandomPath($slug, 'txt');
     $this->logger('saving DomElement as TXT file');
     return SpiderDom::saveTxtToFile($e, $file, $title);
 }