MCPcopy
hub / github.com/027xiguapi/code-box / removeUnwantedElements

Method removeUnwantedElements

utils/print.ts:80–86  ·  view source on GitHub ↗
(
    clone: HTMLElement,
    selector: string
  )

Source from the content-addressed store, hash-verified

78 }
79
80 private static removeUnwantedElements(
81 clone: HTMLElement,
82 selector: string
83 ): void {
84 const unwanted = clone.querySelectorAll(selector)
85 unwanted.forEach((el) => el.remove())
86 }
87
88 private static handleFormValues(
89 clone: HTMLElement,

Callers 1

getContentToPrintMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected