How do you initiate a line break (<br>) in javascript?


#1

I am trying to add line breaks in the share message in social sharing function. I would like to initiate a line break after each scope, a “$” before $scope.release.price and parenthesis around $scope.release.shoename. How do I do this?

How It Looks

How I Want It To Look

My Code


#2

Instead of a <br> element, I expect you can achieve your goal using CSS white-space.