I got the following problem, I read data string from an API which contains new line characters
and I want to display them correctly in my template.
But when I do something like:
<p>{{ mytext }}</p>
The text is display with
characters in it like normal text.
The text string from the response is in the format of "Hello,
what's up?
My name is Joe"
.
What am I doing wrong here?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…