'When strings are visited, checks if it contains HTML.
Arguments:
node: An AST node.'

def visit_Str(self, node):

    if ((re.search('[(][?]P<', node.s) is None) and (re.search('<', node.s) is not None)):
        self.unsafe_html_string_nodes.append(node)
    if re.search('&[#]?[a-zA-Z0-9]+;', node.s):
        self.over_escaped_entity_string_nodes.append(node)
