def _get_innerhtml(html_node):
 html_string = _get_outerhtml(html_node)
 html_string = re.sub('^<[^<>]*?>', '', html_string, count=1)
 return re.sub('<[^<>]*?>$', '', html_string, count=1)

def _get_innerhtml ( html_node ) : html_string = _get_outerhtml ( html_node ) html_string = re . sub ( '^<[^<>]*?>' , '' , html_string , count = 1 ) return re . sub ( '<[^<>]*?>$' , '' , html_string , count = 1 )
get a string representation of the contents of an html node this takes the outerhtml and pulls the two tags surrounding it off .