I'm building a inbox chat app in angularjs. Users type in their message in a textarea and their messages gets saved into the db. They can press enter while writing in the textarea to create line breaks (for long messages).
However when I retrieve the messages, all of the line breaks just show as single spaces. I cannot use
because the data I'm retrieving is in angularjs' interpolation brackets {{messageinfo.message}}.
How do I show the linebreaks a user types in?
Thanks
EDIT:
Answer solved here.