def _get_element_text(self, element):
    text = ''
    if element.text is not None:
      text = text + element.text
    for child in element.getchildren():
      text = text + self._get_element_text(child)
    if element.tail is not None:
      text = text + element.tail
    return text
Return the textual content of the element and its children
dataset/ETHPy150Open jbrinley/HocrConverter/HocrConverter.py/HocrConverter._get_element_text