def renderContents(self, encoding=DEFAULT_OUTPUT_ENCODING,<EOL>prettyPrint=False, indentLevel=<NUM_LIT:0>):
s=[]<EOL>for c in self:<EOL><INDENT>text = None<EOL>if isinstance(c, NavigableString):<EOL><INDENT>text = c.__str__(encoding)<EOL><DEDENT>elif isinstance(c, Tag):<EOL><INDENT>s.append(c.__str__(encoding, prettyPrint, indentLevel))<EOL><DEDENT>if text and prettyPrint:<EOL><INDENT>text = text.strip()<EOL><DEDENT>if text:<EOL><INDENT>if prettyPrint:<EOL><INDENT>s.append("<STR_LIT:U+0020>" * (indentLevel-<NUM_LIT:1>))<EOL><DEDENT>s.append(text)<EOL>if prettyPrint:<EOL><INDENT>s.append("<STR_LIT:\n>")<EOL><DEDENT><DEDENT><DEDENT>return '<STR_LIT>'.join(s)<EOL>
Renders the contents of this tag as a string in the given
        encoding. If encoding is None, returns a Unicode string..