title: Trying to get html response from apis in ionic
body: <p>I am calling linkedin api with passport-linkedin-oauth2 from nodejs. While I am calling it from postman I am getting the expected correct response (linkedin's login/signup page) in html format.</p>
  
  <p>Now I am integrating this backend with ionic. When I am calling the api from my ionic app pages I get the response from linkedin in html format rather than in json. Thus I am storing the response in text format rather than json format.</p>
  
  <p>After this I am getting lost. What do I do after this? </p>
  
  <p>I am thinking I will convert the response from text into html and then somehow display it. </p>
  
  <p>EDIT: So I got the response on the display page as text. Its in the variable <strong><em>name</em></strong> in the .ts page.</p>
  
  <pre><code>@Component({
    selector: 'page-profile',
    templateUrl: 'profile.html',
  })
  export class ProfilePage{
    name: any;
  
    constructor(public navCtrl: NavController, public navParams: NavParams) {
      this.name = navParams.get('name');
  </code></pre>
  
  <p>Now I am trying to display it in in html format using </p>
  
  <pre><code>&lt;div [innerHtml]="name"&gt;{{name}}&lt;/div&gt; 
  </code></pre>
  
  <p>But I get it in text format and not html. How to display in html format?</p>