title: str_replace in model or the view?
body: <h1>Model</h1>
  <pre><code>function Show_all_products()
  {
     return $this-&gt;db-&gt;get('printer')-&gt;result();
  }
  </code></pre>
  <h1>View</h1>
  <p>The table contents is being echoed in a loop</p>
  <pre><code> $i = -1;
   echo '&lt;ul class=&quot;products&quot;&gt;'; foreach($products as $product) : 
   if($i % 11 == 10) echo '&lt;/ul&gt;&lt;ul class=&quot;products&quot;&gt;'; 
  ?&gt;
  
  &lt;li&gt;&lt;a href=&quot;&lt;?php echo base_url(); ?&gt;does/products/&lt;?php echo $product-&gt;id; echo '/'.$product-&gt;name; ?&gt;&quot;&gt;&lt;?php echo $product-&gt;name; ?&gt; &lt;/a&gt;&lt;/li&gt;
  
  &lt;?php 
   $i += 1;
   endforeach; 
   echo &quot;&lt;/ul&gt;&quot;;
  </code></pre>
  <p>The product names are saved as <code>Something_Something_Blah</code> I cannot modify the product names as they are configured to show clean URL's and Breadcrumbs.</p>
  <p>The issue is that the links in this view show as <code>Something_Something_Blah</code></p>
  <p>I tried to do a <code>str_replace</code> as <code>$product = str_replace('_',' ', $product);</code> However this isn't working.</p>
  <p>How do i strip the '_' and insert <code> \s </code>?</p>