You could wrap the output of vimeo_enbed_code in jinja.Markup and not need the safe filter everywhere.