def GetSelection(self, refresh=False):
        """
        Return the part of the HTML that was selected. It might not be well-formed.
        """
        if not self.selection or refresh:
            self.GetFromClipboard()
        return self.selection

        Return the part of the HTML that was selected. It might not be well-formed.
        
recipes/Python/474121_Getting_HTML_Windows/recipe-474121.py