<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def escape(self, text, quote = True):
 """ Escape special characters in HTML """

        if isinstance(text, bytes):
            return escape_b(text, quote)
        else:
            return escape(text, quote)