If you have a database field with new line characters in it (rather than <br> or <p>), the new lines are ignored if you display the database field using this form:
<p>{{field_name}}</p>
This will show:
Line 1 Line 2 Line 3
But they are shown if you display the database field using this form:
In my example, the content in the database was created using a textarea element which inserts new line characters, rather than a summernote element which inserts <br> and <p>.
You posted this in the how to section, which is used to ask how to … do some stuff. So i thought you have problems doing what you were trying to do…
And as i explained the purpose of Inner HTML is exactly this.
The point is if you create database content with a textarea and then try to display it with <p>{{field_name}}</p> then the new line characters will not be displayed!
Of course they won't be displayed Antony!
That is why we have created a special dynamic attribute called Inner HTML which will render your HTML on the page ...