'Return the document as a string.
escape --   False   print normally
True    replace < and > by &lt; and &gt;
the default escape sequences in most browsers'

def __call__(self, escape=False):

    if escape:
        return _escape(self.__str__())
    else:
        return self.__str__()
