title: Cut off text after a certain amount of characters via substr fail
body: <p>I have a wordpress site for news, where i have to cut the text after certain amount of characters. It all works fine via <code>substr()</code>, but when there are less than <em>x</em> characters it goes crazy and generate a nonsence in the link of the next <code>&lt;li&gt;</code>.</p>
  
  <p>This is the code:</p>
  
  <pre><code>echo '&lt;li&gt;', get_the_date( 'd.m.Y', $recent["ID"] ), '&amp;nbsp;&amp;nbsp;&lt;a href="' . get_permalink($recent["ID"]) . '" title="Look '.esc_attr($recent["post_title"]).'" &gt;' .   $recent["post_title"].'&lt;/a&gt; &lt;/li&gt; ';
  $post_id = $recent["ID"];
  $post_content = get_post($post_id);
  $content = $post_content-&gt;post_content;
  echo mb_substr(do_shortcode( $content ), 0, 200 , "utf-8");
  echo "...&lt;br&gt; &lt;br&gt;";
  echo "&lt;/div&gt;";
  </code></pre>