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.
![](https://static.wixstatic.com/media/a27d24_88d035f0975640cf91bd6a5a1f84fc4d~mv2.png/v1/fill/w_221,h_122,al_c,q_85,enc_auto/a27d24_88d035f0975640cf91bd6a5a1f84fc4d~mv2.png)
![](https://static.wixstatic.com/media/a27d24_0258a5ddbbc546e9be403860618d7bf9~mv2.png/v1/fill/w_154,h_88,al_c,q_85,enc_auto/a27d24_0258a5ddbbc546e9be403860618d7bf9~mv2.png)
You should have:
$w('#text52').html = a.replace(/,/g, " ").toString(); $w('#nameOfProduct').text = item.name;
Sorry for the confusion.
Thanks to the both of you! I'll continue working on it with your great platform next week and keep you posted :)
Have a great weekend!
Thanks for the effort but I don't think it works. I think that you fell on a product that was written with a <p> for every line and not all the text in one <p>.
Try to look at SKU: FC-1108NY-blu (משקפי ילדים דגם 'פרננדו' כחול). When changing the .text to .html - it doesn't change the UI and there are still <br>s..
URL : https://editor.wix.com/html/editor/web/renderer/edit/2eeaea0e-a6cd-4dab-a7b1-11ea8f68c890?metaSiteId=da1cd1e8-6d24-4ba1-ba3a-e87e3dfc4454&editorSessionId=0299ff44-09be-42a7-9466-18f5cc0b29dd&referralInfo=my-account
page: Stores/Products Products Cilinder
text: #text52
I really hope you are right.. :)
Just one more thing to be clear - I did not put HTML element in the description, and not in the UI :)
Hi,
Yes. This problem occurs in the Wix Stores product management dashboard.
When I add a new product, I fill in all kinds of data, like Price, SKU and so on.
One of the fields is called "info section" and inside the popup I add a short description of the product I'm adding to the store. So again- yes. I am working on the store's products dashboard.
However, the product page that is shown in the UI of the website is a page I have built (with the wix elements- and code, since it is a product page I have built and not what wix offers).
I have put a regular "wix text" which I attached to the store/product database, and that is when sometimes the <br>s are shown.
I should tell you, that the products are added in the stores dashboard every once and a while, and sometimes by different team members. So, maybe there are more spaces or Enters that are not easy to detect ant the writing is not consistent. But for sure there is a problem there, because for example, when I tried to press the button that turns the text to be shown form the right side in that same placeholder in the description of the info section- there was a new and not welcome tag: <rtl> in the UI ...
since you are from the wix team I can guess you have my phone number. feel free to call me and I will be happy to explain whatever is not clear enough :)
Is this problem occurring in the Wix Stores product management dashboard? If not is this using a custom input field on a page on your web site?
Can you help out be sharing the specifics of how the description is being entered and where (share any code and the page URL if code is involved).
Cheers
I'm referring this to QA for evaluation.