[ad_1]
I’ve an online app that places content material on the browser clipboard:
navigator.clipboard.writeText("Identify: Joe SchmonAddress:t550 W. Someplace AventttAnytownttt55555nPhone: 555-555-5555")
Just lately my iPhone customers have began complaining that after they paste this content material it’s “Filled with % indicators and numbers.”
Once they despatched me a duplicate of the outcomes I may see that it has been url encoded.
Namepercent3Apercent20Joepercent20Schmopercent0AAddresspercent3Apercent09550percent20W.%20Someplacepercent20Avepercent0Apercent09percent09percent09Anytownpercent09percent09percent0955555percent0APhonepercent3Apercent20percent20555-555-5555
I believe that I’m operating right into a bug or undesired characteristic within the newest iOS or safari replace and I would like a workaround.
After some experimenting I’ve decided that it solely occurs when the textual content I placed on the clipboard has a ‘:’ in it.
Here’s a codepen which exhibits the difficulty:
https://codepen.io/jasonleenaylor/pen/MWLMYZq
Anybody have a workaround or answer for me?
[ad_2]
Source link