Thursday, 8 August 2019

HTML SMS message body. Everything after & symbol disappears

I'm currently developing a web app and there is this part of the code where I have to pre-populate the message in the sms box. So my code looks like this:

    <a href="sms:?body=This is the message with & symbol">SMS</a>

In the pre-populated message, everything from the & symbol onwards does not appear in the message box on the phone. I know I have to encode it but I do not know what the encoding code is. Any solution to this? Thanks.



from HTML SMS message body. Everything after & symbol disappears

No comments:

Post a Comment