def get_text(element):
    ''' return inner text in pyquery element '''
    _add_links_to_text(element)
    try:
        return element.text(squash_space=False)
    except TypeError:
        return element.text()
def get_text ( element ) : _add_links_to_text ( element ) try : return element . text ( squash_space = False ) except TypeError : return element . text ( )
return inner text in pyquery element