Qonq Qonq - 2 months ago 12
AngularJS Question

angular: Newlines in are not printed in paragraph tag

I am trying to show text from a text-area in a '< p >' tag.
The newlines are ignored when the output is printed in the < p > tag.

Check following:


JSF

using angular for databinding

How can I make the < p > tag to print the newlines?

Answer

Use white-space: pre; on your lines class (please note you have missed a dot referencing your class in the CSS file.

JSF