Error when using substr limit text with format html?
<pre><code>$text = '&lt;p&gt;Download game &lt;a href=""&gt;Avatar&lt;/a&gt; for &lt;b&gt;Iphone 3GS&lt;/b&gt;&lt;/p&gt;';
&lt;?php 
echo strip_tags(substr($text, 0, 10))." ..."; 
?&gt;
</code></pre>

<p>But resut is <code>...</code>.</p>

<p>How to fix it?</p>
