def encode_contents(
            self, indent_level=None, encoding=DEFAULT_OUTPUT_ENCODING,
            formatter="minimal"):
            contents = self.decode_contents(indent_level, encoding, formatter)
            return contents.encode(encoding)

        # Old method for BS3 compatibility
Renders the contents of this tag as a bytestring.
dataset/ETHPy150Open mtlevolio/pylinkchecker/pylinkchecker/bs4/element.py/Tag.encode_contents