Skip to content

Conversation

bling-yshs
Copy link

This PR updates the Android implementation of the clipboard plugin so that when the clipboard holds HTML content, readText returns plain text by stripping the HTML formatting. On Android, sometimes copied text is stored as HTML, which previously meant readText didn’t return usable plain text. On desktop platforms, when HTML is present, the plugin reads it as plain text, so I aligned the Android behavior with desktop to keep the API consistent across platforms. I verified this manually by copying HTML-formatted text on Android and calling readText, which now produces the expected plain text, while plain-text entries remain unchanged. This change only affects Android and should not be breaking, but I’m happy to adjust details based on review.

@bling-yshs bling-yshs requested a review from a team as a code owner October 3, 2025 01:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant