def determine_page_content_type(content):
 tags = ['<p>', '<ul>', '<h1>', '<h2>', '<h3>', '<pre>', '<br', '<table>']
 content_type = 'restructuredtext'
 content = content.lower()
 for t in tags:
  if (t in content):
   content_type = 'html'
 return content_type

def determine_page_content_type ( content ) : tags = [ '<p>' , '<ul>' , '<h1>' , '<h2>' , '<h3>' , '<pre>' , '<br' , '<table>' ] content_type = 'restructuredtext' content = content . lower ( ) for t in tags : if ( t in content ) : content_type = 'html' return content_type
attempt to determine if content is rest or html .