title: How to replace tab and new line from a view in CodeIgniter?
body: <p>I'm using CI for developing websites. In general we write our HTML code like bellow:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;header&gt;
    &lt;div class="banner"&gt;
      &lt;div class="container"&gt;
        &lt;div class="row"&gt;
          &lt;div class="col-xs-12"&gt;
            &lt;h1&gt;Site Title&lt;/h1&gt;
            &lt;h2&gt;Sub Totle&lt;/h2&gt;
            &lt;div class="logo"&gt;&lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/header&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>After that we load the view using CI like:</p>
  
  <pre><code>$this-&gt;load-&gt;view('view');
  </code></pre>
  
  <p>Now my question is, how to load this view with replacing all the tab and new line from views/view.php file like bellow?</p>
  
  <pre><code>&lt;header&gt;&lt;div class="banner"&gt;&lt;div class="container"&gt;&lt;div class="row"&gt;&lt;div class="col-xs-12 ac"&gt;&lt;h1&gt;Site Title&lt;/h1&gt;&lt;h2&gt;Sub Totle&lt;/h2&gt;&lt;div class="logo"&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/header&gt;
  </code></pre>
  
  <p>In a single word, how to uglify HTML code of a CodeIgniter view?</p>
  
  <p>Thanks in advance.</p>