Documenting some absurdity.

I realized I had never checked this page for validation, so I did. It didn't come close. Mostly this is because I'm lazy and mistype HTML and occasionally fail at regexps when doing search-and-replace, but even after fixing those the Youtube and Braek embeds were gratuitously invalid. After googling I found this method which isn't too bad, except no way was I going to do all that just to embed a stupid youtube video. Happilly I use blosxom which is delightfully modifiable and the fancyquotes extension which I've extended a bit to include this clause: :: } elsif ($block =~ /embed.break.com\/\w{8}/i || $block =~ /youtube\.com\/v\/([^&]+)/i ){ $new_body .= ' <script type="text/javascript">swfobject.registerObject("myFlashContent-'.$filename.'", "9.0.0");</script><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="484" height="392" id="myFlashContent-'.$filename.'"><param name="movie" value="'.$block.'"><!--[if !IE]>--><object type="application/x-shockwave-flash" data="'.$block.'" width="484" height="392"><!--<![endif]--><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player"></a> <!--[if !IE]>--></object><!--<![endif]--></object>'; Obviously I've added the appropriate js to the lib directory and added a header value for it, but it wasn't all that difficult actually. Right now it uses an id tagged with the filename of the source file but I really should add a sequential tag so there can be more than one embed per post. If only I could care.