Line breaks in Alert of device notes

Wondering how i can include line breaks in device notes of alerts or if i’m doing something wrong.

this is the test devices note setup:

This is the note in the HTML Alert, the rest of the alert is fine.

Alert sent to: support
Alert Details: Port status up/down
Timestamp: 2023-03-14 17:38:01

Notes:
This is a test for line breaks line one line two line 3 line 4 line 5

Fixed the Issue once i found Laravel Blade was causing the problem, changed the notes format in the template to this.


Notes:
{!! nl2br(e($alert->alert_notes)) !!}


Notes:
{!! nl2br(e($alert->notes)) !!}

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.