def validate_boolean_or_string(option, value):
    if isinstance(value, string_type):
        if value not in ('true', 'false'):
            raise ValueError("The value of %s must be "
                             "'true' or 'false'" % (option,))
        return value == 'true'
    return validate_boolean(option, value)
Returns the string with HTML tags stripped.
dataset/ETHPy150Open mongodb/mongo-python-driver/pymongo/common.py/validate_boolean_or_string--crossover with--dataset/ETHPy150Open google/closure-linter/closure_linter/common/htmlutil.py/StripTags