environment/lib/python2.7/site-packages/IPython/frontend/qt/console/console_widget.py
def _insert_html_fetching_plain_text(self, cursor, html):
        """ Inserts HTML using the specified cursor, then returns its plain text
            version.
        """
        cursor.beginEditBlock()
        cursor.removeSelectedText()

        start = cursor.position()
        self._insert_html(cursor, html)
        end = cursor.position()
        cursor.setPosition(start, QtGui.QTextCursor.KeepAnchor)
        text = cursor.selection().toPlainText()

        cursor.setPosition(end)
        cursor.endEditBlock()
        return text
def _insert_html_fetching_plain_text(self, cursor, html):
        cursor.beginEditBlock()
        cursor.removeSelectedText()

        start = cursor.position()
        self._insert_html(cursor, html)
        end = cursor.position()
        cursor.setPosition(start, QtGui.QTextCursor.KeepAnchor)
        text = cursor.selection().toPlainText()

        cursor.setPosition(end)
        cursor.endEditBlock()
        return text
def _insert_html_fetching_plain_text ( self , cursor , html ) : cursor . beginEditBlock ( ) cursor . removeSelectedText ( ) start = cursor . position ( ) self . _insert_html ( cursor , html ) end = cursor . position ( ) cursor . setPosition ( start , QtGui . QTextCursor . KeepAnchor ) text = cursor . selection ( ) . toPlainText ( ) cursor . setPosition ( end ) cursor . endEditBlock ( ) return text
Inserts HTML using the specified cursor, then returns its plain text
            version.
Inserts HTML using the specified cursor then returns its plain text version .