remove multiple line using str_replace <p>I want to remove this multi line with str_replace</p> <pre><code>&lt;div&gt;&lt;i&gt;Hello&lt;/i&gt;&lt;br/&gt; &lt;!-- Begin: Hello.text --&gt; &lt;script src="http://site.com/hello.php?id=12345" type="text/javascript"&gt; &lt;/script&gt; &lt;!-- End: Hello.text --&gt;&lt;/div&gt; </code></pre> <p>12345 = random number</p>