LUPERSON

Clipboard

Supported formats and clipboard size limits.

Clipboard

ClipReplace prioritizes safe text handling when it reads data from the clipboard.

Supported formats

TypeSupportBehavior
Plain stringSupportedRead first. If UTF-8 data is available, it is decoded strictly.
UTF-8 text dataSupportedDecoded strictly as UTF-8 before replacement.
HTMLSupportedOnly plain-text extraction is used.
RTFSupportedOnly plain-text extraction is used.
Images / binaryNot supportedFails if no usable text is available.
  • In mixed clipboard payloads such as image + HTML + RTF + text, ClipReplace processes only the highest-priority text representation.
  • Corrupted UTF-8 data or text that looks like binary data is rejected. HTML and RTF are converted to plain text before replacement; formatting is not preserved.

Size limits

Input text limit

1,048,576 bytes

Input larger than 1 MB in UTF-8 byte length is rejected as clipboardInputTooLarge.

Output text limit

1,048,576 bytes

If the replaced result exceeds 1 MB, ClipReplace returns clipboardOutputTooLarge and does not write the result back.

HTML / RTF parsing limit

4,194,304 bytes

Rich-text to plain-text extraction is limited to 4 MB.