Clipboard
ClipReplace prioritizes safe text handling when it reads data from the clipboard.
Supported formats
| Type | Support | Behavior |
|---|---|---|
| Plain string | Supported | Read first. If UTF-8 data is available, it is decoded strictly. |
| UTF-8 text data | Supported | Decoded strictly as UTF-8 before replacement. |
| HTML | Supported | Only plain-text extraction is used. |
| RTF | Supported | Only plain-text extraction is used. |
| Images / binary | Not supported | Fails 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 bytesInput larger than 1 MB in UTF-8 byte length is rejected as clipboardInputTooLarge.
Output text limit
1,048,576 bytesIf the replaced result exceeds 1 MB, ClipReplace returns clipboardOutputTooLarge
and does not write the result back.
HTML / RTF parsing limit
4,194,304 bytesRich-text to plain-text extraction is limited to 4 MB.