>>> "<h1>Hello, World!</h1>".encode('base64').strip('\n') 'PGgxPkhlbGxvLCBXb3JsZCE8L2gxPg=='
Works in Chrome 10.0
Works in Chrome 10.0