Create Line Break in Whatsapp Message

How to create line break in WhatsApp message?

I have tried
PHP_EQL and its working.

echo "First Line".PHP_EQL."Second Line";

Output is

First Line

Second Line

How to line break in WhatsApp with Selenium when sending a message?

Solved this

def send_message(driver, answer):
for line in answer.split('\n'):

Custom URL scheme to open text in whatsapp from mobile browser, newline / line break not working

Based on the URL scheme I'm pretty sure that %0A is the way to go, you could go as far as %0A%0D..."whatsapp://send?text=Hello%20World!%0AAnother%20Word")

Most languages will have a method for URL encoding - see this website for an example implementation:

How to make add break after paragraph in WhatsApp share on websites?

Try encoding your string. The character that you are probably looking for is LF line feed, which corresponds to %0A. Maybe something like this:


Related Topics

Leave a reply