#NEWLINE# def add_youtube_embeds( self , html ) : #NEWLINE# #INDENT# "Insert youtube embeds.\n\n        We need to play this placeholder replacement game because we don't\n        allow iframes in the rendered content.\n        " #NEWLINE# for video_id in self . youtube_videos : #NEWLINE# #INDENT# html = html . replace ( ( YOUTUBE_PLACEHOLDER % video_id ) , generate_youtube_embed ( video_id ) ) #NEWLINE# #UNINDENT# return html