(
element: HTMLElement,
options: PrintOptions
)
| 43 | } |
| 44 | |
| 45 | private static getContentToPrint( |
| 46 | element: HTMLElement, |
| 47 | options: PrintOptions |
| 48 | ): string { |
| 49 | const clone = element.cloneNode(true) as HTMLElement |
| 50 | Print.handleStyles(clone, options) |
| 51 | Print.removeUnwantedElements(clone, options.noPrintSelector) |
| 52 | Print.handleFormValues(clone, options.manuallyCopyFormValues) |
| 53 | Print.addExtraContent(clone, options) |
| 54 | |
| 55 | return clone.outerHTML |
| 56 | } |
| 57 | |
| 58 | private static handleStyles(clone: HTMLElement, options: PrintOptions): void { |
| 59 | if (options.globalStyles) { |
no test coverage detected