Skip to content

ElectronClipboard.readHTML method

ElectronClipboard › readHTML

Unofficial

Reads the clipboard content as HTML.

Signature:

readHTML(type?: "clipboard" | "selection" | undefined): string

Parameters:

ParameterTypeDescription
type?"clipboard" | "selection" | undefinedThe clipboard type.

Returns: stringThe HTML content.