title: Angular [$interpolate:interr] error for applied filter
body: <p>Hi I have a filter which replaces <strong>\n to \n\n</strong> when i use this filter for my json data I get error saying <code>Can't interpolate: {{ post.description|nlToArray }}
  TypeError: Cannot read property 'replace' of undefined</code></p>
  
  <p>My filter</p>
  
  <pre><code>sampleApp.filter('nlToArray', function() {
    return function(text) {
        return text.replace(/\n/g, '/\n\n');
    };
  });
  </code></pre>
  
  <p>displaying data obtained from json api</p>
  
  <p>hmtl</p>
  
  <pre><code>&lt;p class="blog-post-title"&gt;{{ post.title }}&lt;/p&gt;
  &lt;p class="blog-post-meta"&gt;&lt;i class="fa fa-clock-o"&gt;&amp;nbsp {{ post.pub_date|date  }}&lt;/i&gt; &lt;/p&gt;
  &lt;span style="white-space: pre-line"&gt;{{ post.description|nlToArray }}&lt;/span&gt;
  &lt;br /&gt;
  </code></pre>
  
  <p>My json data</p>
  
  <pre><code>[{"id":1,"title":"Israel’s desert city of Beersheba is turning into a cybertech oasis","description":"morphing into a tech oasis.\r\nThe military’s massive relocation of its prestigious technology units.\r\nBeersheba has all of the ingredients of a vibrant security technology ecosystem, \r\n“All in all, projections are that 20,000-30,000 \r\nThe commercial sector has teamed up  cyber attacks.","pub_date":"2016-03-20T10:48:19.394643Z"},{"id":2,"title":"These are testing times: mavericks vs. ice people","description":"One of my earliest engineering jobs, before I fled hardware in favor of the (relative). \r\nThe practice of engineering soon teaches one that, .\r\nSo what do we do? We practice defense in depth. We follow the robustness principle. We “always code as \r\n…Yeah, well, that’s the idea. For my day job at HappyFunCorp I do a lot of interviews, and almost every junior develope.\r\nI don’t necessarily blame them. You can make  go.","pub_date":"2016-03-20T10:50:07.965930Z"}]
  </code></pre>
  
  <p>To be much clearer, description in json is like this</p>
  
  <pre><code>morphing into a tech oasis.\r\nThe military’s massive relocation of its prestigious technology units.\r\nBeersheba has all of the ingredients of a vibrant security technology ecosystem, \r\n“All in all, projections are that 20,000-30,000 \r\nThe commercial sector has teamed up  cyber attacks.
  </code></pre>
  
  <p>What could be the possible solution...Thanks in advance</p>