• Remove all scripts contained in the given Document/Element.

    Returns

    Nothing; the document/element contents are mutated.

    Parameters

    • docOrElement: Element | Document

      The Document or Element to remove scripts from.

    • config: GlobalConfig = {}

    Returns void