(value)
return value
Strip HTML tags from a value
Strip HTML tags from a value
Strip HTML tags from a value
def _strip_tags(value):
        """
        Strip HTML tags from a value
        """
        # Uses regex. Regex is much faster than using an HTML parser, but will
        # strip "<2 && 3>" from a value like "1<2 && 3>2". A parser will treat
        # each cell like an HTML document, which might be overkill, but if
        # using regex breaks values then we should use a parser instead, and
        # take the knock. Assuming we won't have values with angle brackets,
        # using regex for now.
        if isinstance(value, str):
            return re.sub('<[^>]*?>', '', value)
        return value
def _strip_tags ( value ) : # Uses regex. Regex is much faster than using an HTML parser, but will # strip "<2 && 3>" from a value like "1<2 && 3>2". A parser will treat # each cell like an HTML document, which might be overkill, but if # using regex breaks values then we should use a parser instead, and # take the knock. Assuming we won't have values with angle brackets, # using regex for now. if isinstance ( value , str ) : return re . sub ( '<[^>]*?>' , '' , value ) return value