'For use in HTML Generator Mode:
In this mode, HTML generated by calls to write() is buffered.  This
function returns the contents of and clears the buffer.'

def htmldump(self):

    tmp = self.htmlbuffer
    self.htmlbuffer = ''
    return tmp
