title: Codeigniter character_limiter and strip_tags
body: <p>Using a database show an article with html characters:</p>
  
  <p>$row->article:</p>
  
  <pre><code>&lt;div class="article"&gt;
  As is usual also in Buenos Aires, is held in that city again the official Asterisk Advanced course with the new agenda &lt;a href="http://www.google.com"&gt;google page&lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Using: character_limiter ($row->article, 160) short text, but it happens that cuts the hyperlink, which generates an error in the html code, I used to solve the function strip_tags () ... but it shows the following:</p>
  
  <pre><code>&lt;div class="article"&gt;
      As is usual also in Buenos Aires, is held in that city again the official Asterisk Advanced course with the new agendagoogle page...
      &lt;/div&gt;
  </code></pre>
  
  <p>As you can see, the function removes the hyperlinks labels but also removes the spaces that surround.</p>
  
  <p>I have read this article : <a href="https://stackoverflow.com/questions/4482152/problem-using-strip-tags-in-php">Problem using strip_tags in php</a></p>
  
  <p>...but use a regular expression that is set to 2 text elements. I wonder if you could use something similar but with undefined labels. I hope your help</p>