Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ncltours's avatar

line break \r\n not actually displaying in new line

"Dear $lead_passenger_title $lead_passenger_last_name, \r\n Thank you for booking with Travnet. \r\n Please find the booking details below: \r\n From $origin_full_selected To $destination_full_selected \r\n Departure : $newoutdate, $outbound_time \r\n Payment Ref :$PAYID \r\n Status: $Status "

0 likes
2 replies
tykus's avatar
tykus
Best Answer
Level 104

Plain text email or HTML email; the latter would need to wrap the string in nl2br()

3 likes
ncltours's avatar

Found the answer. Thanks yes it was with nl2br() with little modification

{!! nl2br(e($order)) !!}

3 likes

Please or to participate in this conversation.