title: How to retain whitespaces in angularjs?
body: <p>I have some code like this </p>
  
  <pre><code>&lt;select class="form-control input-xs inline"
       ng-model="delimiter"
       &lt;option ng-repeat="i in delimiters" value="{{i.value}}"&gt;
          {{i.name}}
       &lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>and delimiters array is like this</p>
  
  <pre><code>delimiters = [
      {'name':'Pipe', 'value': '|'},
      {'name':'Comma', 'value': ','},
      {'name':'Tab', 'value': '\t'}
    ];
  </code></pre>
  
  <p>The problem is, delimiter gets correct value for comma and pipe but for tab, it gets null. Seems that angularjs removes whitespaces. How to fix it?</p>
  
  <p>I tried ng-trim="false" but didnt work.
  Now trying to add one more '\' to tab. So tab has value "\t"m but this way i get literal string of "\t". Is there anyway to convert this string back to tab?</p>