def GetFragment(self, refresh=False):
        """
        Return the Html fragment. A fragment is well-formated HTML enclosing the selected text
        """
        if not self.fragment or refresh:
            self.GetFromClipboard()
        return self.fragment

        Return the Html fragment. A fragment is well-formated HTML enclosing the selected text
        
recipes/Python/474121_Getting_HTML_Windows/recipe-474121.py