When filling in the description field I noticed that sometimes the element is created as one <p> with <br>s whenever I press Enter.
The problem in that is that the front end of the website doesn't know to implement that way of code and shows the <br> as part of the text.
In other times when I write a description in the info section and press Enter, the code is implemented as a new <p> for every row, and then there are no problems with <br> showing as part of the text string.
I couldn't understand when exactly does each case happen.
I think wix programmers should look into it to prevent <br> showing in the text.
You should have:
$w('#text52').html = a.replace(/,/g, " ").toString(); $w('#nameOfProduct').text = item.name;
Sorry for the confusion.