title: How to remove html tags from text in angular 2
body: <p>I am working with rss feed and got rss feed from my server so i am sending stringfy data but when i bind this in my angular 2 application it shows text with html tags so how we can remove this tags. I just want to show text only.</p>
  
  <p>Here is server code:</p>
  
  <pre><code>exports.newspage=function(req,resp){
  db.executeSql("select header,text,teaser from news_d",function(data,err){
          if(err){
              resp.writeHead(200,{"Content-Type":"text/html"});
              resp.write("&lt;html&gt;&lt;head&gt;&lt;title&gt;500&lt;/title&gt;&lt;/head&gt;&lt;/html&gt;");
          }
          else{
              resp.writeHead(200,{"Content-Type":"x-application/json"});
              resp.write(JSON.stringify(data));
          }
          resp.end();
      });
  };
  
  app.get('/newspage', function(req, resp) {
  
      emp.newspage(req,resp);
  
  });
  </code></pre>
  
  <p>service.ts:</p>
  
  <pre><code>gettagesnews(){
       let headers = new Headers();
         headers.append('x-access-token',this.token);
           var options = new RequestOptions({headers: headers});
        return this.http.get('http://services.com:9000/newspage/',options).map((res:Response) =&gt; res.json())
      .catch((error:any) =&gt; Observable.throw(error.json().error || 'Server error'));
    }
  </code></pre>
  
  <p>news.ts:</p>
  
  <pre><code>tagesnews:Array&lt;TagesnewsList&gt;;
  
  this.newsauth.gettagesnews().subscribe((dailynews)=&gt;{
      this.tagesnews=dailynews;
    });
  </code></pre>
  
  <p>html:</p>
  
  <pre><code>&lt;div *ngFor="let daily of tagesnews"&gt;
         &lt;span style="font-size: 13px"&gt;{{daily.text}}&lt;/span&gt; &lt;/button&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>i got response with some <b> </b> like this:</p>
  
  <p><a href="https://i.stack.imgur.com/kN0VE.png" rel="noreferrer">sample text</a></p>