def is_safe_elem(self, tag, attrs):
        if tag not in self.safe_tags:
            return False
        if tag.localname == 'input':
            input_type = attrs.get('type', '').lower()
            if input_type == 'password':
                return False
        return True
Parse a value from a piece of text
dataset/ETHPy150Open timonwong/OmniMarkupPreviewer/OmniMarkupLib/Renderers/libs/python3/genshi/filters/html.py/HTMLSanitizer.is_safe_elem--crossover with--dataset/ETHPy150Open sahana/eden/modules/templates/IFRC/parser.py/S3Parser._parse_value