def __init__(self, preserve=None, noescape=None):
    'Initialize the filter.\n        \n        :param preserve: a set or sequence of tag names for which white-space\n                         should be preserved\n        :param noescape: a set or sequence of tag names for which text content\n                         should not be escaped\n        \n        The `noescape` set is expected to refer to elements that cannot contain\n        further child elements (such as ``<style>`` or ``<script>`` in HTML\n        documents).\n        '
    if (preserve is None):
        preserve = []
    self.preserve = frozenset(preserve)
    if (noescape is None):
        noescape = []
    self.noescape = frozenset(noescape)
Initialize the filter.

:param preserve: a set or sequence of tag names for which white-space
                 should be preserved
:param noescape: a set or sequence of tag names for which text content
                 should not be escaped

The `noescape` set is expected to refer to elements that cannot contain
further child elements (such as ``<style>`` or ``<script>`` in HTML
documents).
def __init__(self, preserve=None, noescape=None):
    'Initialize the filter.\n        \n        :param preserve: a set or sequence of tag names for which white-space\n                         should be preserved\n        :param noescape: a set or sequence of tag names for which text content\n                         should not be escaped\n        \n        The `noescape` set is expected to refer to elements that cannot contain\n        further child elements (such as ``<style>`` or ``<script>`` in HTML\n        documents).\n        '
    if (preserve is None):
        preserve = []
    self.preserve = frozenset(preserve)
    if (noescape is None):
        noescape = []
    self.noescape = frozenset(noescape)