David
David

Reputation: 3323

iOS mailto Link with newline (%0A) is Converted to <BR>

The link below is recently failing to have line breaks when it opens in the Mail app.

<a href="mailto:[email protected]?subject=Question&body=%0A%0A%0A----------%0AVersion: 2.0%0ABuild: 12345" id="address">support by email</a>

Instead, it is appearing like this in the Mail app:

<BR><BR><BR>----------<BR>Version: 2.0<BR>Build: 12345

but should appear like:

enter image description here

It was working in iOS 13, but now no longer. I have noticed this same behavior with another app and similar %0A. It also occurs when using %0D%0A

The spaces are being coded to %20 by javascript.

Has anyone else seen this or have ideas to try?

Edit: filed bug report FB9146675. Please consider doing the same. Only if there is emphasis on a topic will it be seen.

Upvotes: 15

Views: 3395

Answers (2)

B. Martin
B. Martin

Reputation: 1163

This is a bug which has apparently been fixed in iOS 15.

Upvotes: 2

Amjad Saeed
Amjad Saeed

Reputation: 106

The issue is with ios, there is a thread on developer forum, please check https://developer.apple.com/forums/thread/681023

Upvotes: 0

Related Questions