def parse_content(documentation_type, content):
 try:
  to_index = PyQuery(content).text()
 except ValueError:
  return ''
 return to_index

def parse_content ( documentation_type , content ) : try : to_index = PyQuery ( content ) . text ( ) except ValueError : return '' return to_index
prepare the text of the html file .