def htmlsafe_dump(obj, fp, **kwargs):
 fp.write(unicode(htmlsafe_dumps(obj, **kwargs)))

def htmlsafe_dump ( obj , fp , ** kwargs ) : fp . write ( unicode ( htmlsafe_dumps ( obj , ** kwargs ) ) )
like :func:htmlsafe_dumps but writes into a file object .