title: How to replace string in angular 2?
body: <p>I have used with below interpolation in html page.</p>
  
  <pre><code>&lt;div&gt;{{config.CompanyAddress.replace('\n','&lt;br /&gt;')}}&lt;/div&gt;
  </code></pre>
  
  <p>and also used</p>
  
  <pre><code>&lt;div&gt;{{config.CompanyAddress.toString().replace('\n','&lt;br /&gt;')}}&lt;/div&gt;
  </code></pre>
  
  <p>But both are showing text as below</p>
  
  <pre><code>{{config.CompanyAddress.replace('\n','&lt;br /&gt;')}}
  {{config.CompanyAddress.toString().replace('\n','&lt;br /&gt;')}}
  </code></pre>