def html_body(input_string, source_path=None, destination_path=None, input_encoding='unicode', output_encoding='unicode', doctitle=True, initial_header_level=1):
 parts = html_parts(input_string=input_string, source_path=source_path, destination_path=destination_path, input_encoding=input_encoding, doctitle=doctitle, initial_header_level=initial_header_level)
 fragment = parts['html_body']
 if (output_encoding != 'unicode'):
  fragment = fragment.encode(output_encoding)
 return fragment

def html_body ( input_string , source_path = None , destination_path = None , input_encoding = 'unicode' , output_encoding = 'unicode' , doctitle = True , initial_header_level = 1 ) : parts = html_parts ( input_string = input_string , source_path = source_path , destination_path = destination_path , input_encoding = input_encoding , doctitle = doctitle , initial_header_level = initial_header_level ) fragment = parts [ 'html_body' ] if ( output_encoding != 'unicode' ) : fragment = fragment . encode ( output_encoding ) return fragment
given an input string .