title: HTMLDomParsing with Laravel 8
body: <p>I need help with HTMLDomParser. I'm using sunra/php-simple-html-dom-parser package. Here is the link: <a href="https://github.com/sunra/php-simple-html-dom-parser" rel="nofollow noreferrer">https://github.com/sunra/php-simple-html-dom-parser</a></p>
  <p>And then I'm trying to get html file from this website:
  <a href="https://www.antaranews.com/berita/2900389/kolaborasi-jam-tangan-dan-permen-lolipop-hasilkan-warna-menggemaskan" rel="nofollow noreferrer">https://www.antaranews.com/berita/2900389/kolaborasi-jam-tangan-dan-permen-lolipop-hasilkan-warna-menggemaskan</a></p>
  <p>I've done that, and now, I'm trying to get every content in div.post-content.clearfix inside that website (only the text without any element tag inside if possible). But I still can't manage to get it.</p>
  <p>Here's what I've already tried:</p>
  <pre><code>$dom = HtmlDomParser::file_get_html($article-&gt;link);
      foreach($dom-&gt;find('div.post-content.clearfix') as $content) {
          echo $content-&gt;plaintext;
          echo &quot;&lt;/br&gt;&quot;;
          
      }
  </code></pre>
  <p>FYI: $article-&gt;link value is the link of that URL website.</p>