About VALID XHTML Youtube

Hi there I am Glenn of gL3nnX.net, I am a freelance web designer. I am a fan of Valid XHTML sites. I am a great fan of Youtube, Youtube keeps my blog alive , thats why many blog owners and web site owners embed youtube flash videos in their blogs.
The problem is, Youtube's current flash html code is using an obsolete copy and paste html code and it doesnt validate as a valid XHTML.
As a part of my PHP self study, i wrote this simple script page, that allows people to convert their desired Youtube's code into a valid XHTML Transitional.
I want to give the full credit to Bernie Zimmermann as my source of information on how to embed youtube videos as valid xhtml 1.0.