Function getOuterHTML

  • getOuterHTML(node: AnyNode | ArrayLike<AnyNode>, options?: DomSerializerOptions): string
  • Deprecated

    Use the dom-serializer module directly.

    Returns

    node's outer HTML.

    Parameters

    • node: AnyNode | ArrayLike<AnyNode>

      Node to get the outer HTML of.

    • Optional options: DomSerializerOptions

      Options for serialization.

    Returns string