# Is it possible to include 'New Line' to control Notification text

**URL:** https://discourse.nodered.org/t/is-it-possible-to-include-new-line-to-control-notification-text/77020
**Category:** Dashboard
**Created:** [28 March 2023 12:33 UTC](https://discourse.nodered.org/t/is-it-possible-to-include-new-line-to-control-notification-text/77020 "2023-03-28T12:33:14Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![tree-frog](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/tree-frog/32/89303_2.png) [@tree-frog](https://discourse.nodered.org/u/tree-frog)
#### Post date: [28 March 2023 12:33 UTC](https://discourse.nodered.org/t/is-it-possible-to-include-new-line-to-control-notification-text/77020/1 "2023-03-28T12:33:14Z")

</div>

This example of the Dashboard Notification. I'm using a very simple template with an inject of timestamp value. My purpose is to display mulit-line text where I can control the text length with \r\n . The notification removes the \r\n .

How to get something which I can have a bullet point and text to control each line? Can I embed HTML in the notification to force line feed?

Thanks.

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/d/2dbcd469038dc857aa43e11ccc52ed3bb5e3cf4a.png)

---

<div class="post-metadata">

### Author: ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)
#### Post date: [28 March 2023 13:01 UTC](https://discourse.nodered.org/t/is-it-possible-to-include-new-line-to-control-notification-text/77020/2 "2023-03-28T13:01:58Z")

</div>

Allow html/javascript in the config settings and use `<br>`

---

<div class="post-metadata">

### Author: ![tree-frog](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/tree-frog/32/89303_2.png) [@tree-frog](https://discourse.nodered.org/u/tree-frog)
#### Post date: [28 March 2023 14:54 UTC](https://discourse.nodered.org/t/is-it-possible-to-include-new-line-to-control-notification-text/77020/3 "2023-03-28T14:54:42Z")

</div>

Thanks,  
I looked at [w3schools.com](http://w3schools.com) for HTML syntax and this is my example of what I wanted.  
There is no difference if you surround the body with any other HTML ( `<p>` paragraph `</p>` ). It works exactly the same if you just use the `<br>` "break" at the end of each line, and of course, set the HTML option true.

```auto
<p>My first Line. {{payload}}<br>
   My second Line. text filler text My second Line. filler text My second Line. {{payload}}<br>
   The third Line. {{payload}}<br>
   This Fourth Line. {{payload}}</p>

```

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/9/f98f8ddb05d34bb1d14b8db766b409e61af70133.png)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [27 April 2023 14:55 UTC](https://discourse.nodered.org/t/is-it-possible-to-include-new-line-to-control-notification-text/77020/4 "2023-04-27T14:55:30Z")

</div>

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