title: How to get youtube embed code with CodeIgniter?
body: <p>I need to give the possibility to embed youtube videos in a website I'm developing. The admin shoud be able to insert a youtube link in a form; the url will be stored in the database and then I have to embed it in a page.</p>
  
  <p>I was trying to use this library: <a href="http://codeigniter.com/wiki/YouTube_API_for_CodeIgniter/revision/12072/" rel="nofollow">http://codeigniter.com/wiki/YouTube_API_for_CodeIgniter/revision/12072/</a></p>
  
  <p>But using the getVideoEntry function I get this, and I don't really know what to do with it:</p>
  
  <pre><code>tag:youtube.com,2008:video:zol2MJf6XNE2009-01-14T17:21:57.000Z2011-09-01T11:36:39.000ZSyndication of this video was restricted by its owner.DominoRecordshttp://gdata.youtube.com/feeds/api/users/dominorecordsMusicDominoRecordsA video for 'My Girls' from Animal Collective's new album Merriweather Post Pavilion. Out now on Domino. Produced by: Knowmore Productions Animated by: Jon Vermilyea Edited/VFX by: Chad Von Nauanimal collective, my girls, domino, avey tare, panda bear, geologistDEAnimal Collective - My Girls (2009)widescreen2009-01-14T17:21:57.000Zzol2MJf6XNE
  </code></pre>
  
  <p>And anyway, to use it, I need the youtube video id. Is there an easy way to get it, which covers all possible variations of youtube urls?</p>