title: CodeIgniter word_wrap and I code
body: <p>So, I have this problem that when I word_wrap the text field. But when I word_wrapped, it didn't get the <code>&lt;/i&gt;</code> so, it ended up with whole website got italic text.</p>
  
  <pre><code>&lt;?php echo word_limiter($news_item['text'], 10); ?&gt;
  </code></pre>
  
  <p>How do I fix that?</p>
  
  <p>... Now i just realized that every tag HTML (i begin, but not end) I do, does still work? I just use the XSS fixer... Shouldn't it fix this as well? And more importantly how do I fix this, but I still want to allow clean HTML. (But they have to close the tag!!!!)</p>
  
  <pre><code>&gt; &lt;John13&gt; Hello [14:13] &lt;John13&gt; When I use the xss clean (function) It
  &gt; doesn't prevent tags that ain't closed. How do I fix it? [14:14]
  &gt; &lt;John13&gt; For example &lt;b&gt;blablabla.... (end of post) Now all rest of
  &gt; text will be bold on the site.
  </code></pre>