#NEWLINE# def is_safe_elem( self , tag , attrs ) : #NEWLINE# #INDENT# 'Determine whether the given element should be considered safe for\n        inclusion in the output.\n        \n        :param tag: the tag name of the element\n        :type tag: QName\n        :param attrs: the element attributes\n        :type attrs: Attrs\n        :return: whether the element should be considered safe\n        :rtype: bool\n        :since: version 0.6\n        ' #NEWLINE# if ( tag not in self . safe_tags ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# if ( attrs . localname == 'input' ) : #NEWLINE# #INDENT# input_type = attrs . get ( 'type' , '' ) . lower ( ) #NEWLINE# if ( input_type == 'password' ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# #UNINDENT# return True