title: how to embed Youtube videos in a Ionic 4 app
body: <p>I am trying to develop an ionic app that i will be deploying as a pwa in which i want to embed Youtube Videos and display them in a grid. Video links, their titles, and brief descriptions are provided by my Cloud Firestore objects. </p>
  
  <p>Now the problem is that when I am trying to use iframe in ionic app with single url like :</p>
  
  <pre><code>&lt;iframe width="560" height="315" src="https://www.youtube.com/embed/6kqe2ICmTxc" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>then it is working but when I am binding it to my database Video URL, then it is not working. The console is showing that URL is not a safe url. </p>
  
  <p>Now, I know that it can be fixed by using the DomSanitizer but i don't know how to use it for the array of objects that contains the required links.</p>