Returns the text as paragaphed HTML vs. a full HTML document page.
        
        :return     <str>

def toDiv(self, style='document'):
        """
        Returns the text as paragaphed HTML vs. a full HTML document page.
        
        :return     <str>
        """
        if not self.editor().toPlainText():
            return ''
        
        html = self.editor().document().toHtml(self.encoding())
        html = projex.text.encoded(html, self.encoding())
        html = html.replace('style="-qt-paragraph-type:empty',
                     'class="paragraph_empty" style="-qt-paragraph-type:empty')
        
        # strip out any existing style's because we want to control this
        # via style sheets
        results = re.findall(r'\<(\w+)\s+(style="[^"]*")', html)
        for tag, tag_style in results:
            # keep any span stylings as these are inline additions
            if tag == 'span':
                continue
            
            html = html.replace(tag_style, '')
        
        start = '<body '
        end = '</body>'
        
        start_i = html.find(start)
        end_i = html.find(end)
        
        stripped = html[start_i+len(start):end_i]
        
        return '<div class="%s" %s</div>' % (style, stripped)