#NEWLINE# @ classmethod #NEWLINE# def escape( cls , s ) : #NEWLINE# #INDENT# 'Escape the string.  Works like :func:`escape` with the difference\n        that for subclasses of :class:`Markup` this function would return the\n        correct subclass.\n        ' #NEWLINE# rv = escape ( s ) #NEWLINE# if ( rv . __class__ is not cls ) : #NEWLINE# #INDENT# return cls ( rv ) #NEWLINE# #UNINDENT# return rv