code: def output_detailed(paragraphs, fp=sys.stdout):
      
      for paragraph in paragraphs:
          output = '<p class="%s" cfclass="%s" heading="%i" xpath="%s"> %s' % (
              paragraph.class_type,
              paragraph.cf_class,
              int(paragraph.heading),
              paragraph.xpath,
              cgi.escape(paragraph.text)
          )
          print(output, file=fp)
docs: Same as output_default, but only <p> tags are used and the following
      attributes are added: class, cfclass and heading.