Getting the first paragraph from a URL which doesn't contain script tags and it has words number > 20
<p>I want to grab from a URL  the first paragraph which doesn't contain script tags and its words number is greater than 20. The right paragraph could be the 3rd one for example. Can you help me with that guys? I have made something like that until now.</p>

<pre><code> $start = strpos($url, '&lt;p&gt;');
 $end = strpos($url, '&lt;/p&gt;', $start);
 $par1 = substr($url, $start, $end - $start + 4);   
 $count = str_word_count($par1);
 if ($count &gt; 20) {     
     $par = html_entity_decode(strip_tags($par1));
     echo $par;
 }
</code></pre>

<p>This code is not exactly right. It shows the first paragraph in the URL, only if it has number of <code>words &gt; 20</code>. </p>
