How to remove all white spaces if more than one
<p>I'm trying to remove all white spaces in PHP from html content if it's longer than one, per example a chain like that:</p>

<pre><code>{{IMG}}                                     {{IMG}}                                     {{IMG}}                                     {{IMG}}                                     {{IMG}}
</code></pre>

<p>But shouldn't affect a sentence like: About us.</p>

<p>Should it be done with a regex? Any idea?</p>

<p>PS: the variable is already used with trim(); which removes white spaces at the end and at the beginning but not between characters...</p>

<p>Thanks a lot for your help.</p>