Viewing an older version of mapbox.js. Check out v1.4.0 for the latest.

YouTube Embeds

Turn off HTML sanitization for tooltip content
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>YouTube Embeds</title>
  <script src='http://api.tiles.mapbox.com/mapbox.js/v0.6.7/mapbox.js'></script>
  <link href='http://api.tiles.mapbox.com/mapbox.js/v0.6.7/mapbox.css' rel='stylesheet' />
  <style>
    body { margin:0; padding:0; }
    #map { position:absolute; top:0; bottom:0; width:100%; }
  </style>
</head>
<body>
<div id='map'></div>
<style>
.map-tooltip {
    width:440px !important;
    max-width:440px !important;
}
</style>
<script>
    mapbox.load('examples.youtube-embed', function(o) {
        var map = mapbox.map('map');
        // This line redefines part of the underlying code which
        // sanitizes HTML from MapBox Hosting. The original code is there
        // for the protection of sites, so that malicious map-creators
        // can't add cross-site scripting attacks to sites that use their
        // maps.
        // Turning it off allows any content to be available in tooltips.
        // It's recommended to only with trusted maps.
        wax.u.sanitize = function(x) { return x; };
        map.addLayer(o.layer).zoom(3).center({ lat: 48, lon: -100 });
        map.interaction.auto();
    });
</script>
The code and documentation to mapbox.js is hosted on GitHub where you can contribute changes and improvements.