I’m populating a datatables cell via Ajax and JSON. To get line breaks in a list of names in a a cell I’ve tried \n and escaped \n (\\n). Neither work.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I suspect this is because your cell is HTML so \n ,not being a valid HTML markup, is not causing a line break.
A
<br/>element will likely cause a link break in your case, however without sample code from you it is hard to know.