96
rated 0 times
[
100]
[
4]
/ answers: 1 / hits: 32034
/ 6 Years ago, tue, march 13, 2018, 12:00:00
I got the following problem, I read data string from an API which contains new line characters n
and I want to display them correctly in my template.
But when I do something like:
<p>{{ mytext }}</p>
The text is display with n
characters in it like normal text.
The text string from the response is in the format of Hello, n what's up? n My name is Joe
.
What am I doing wrong here?
More From » string