no data displayed on datatables(child row) when a string value from database has a linebreak/newline
no data displayed on datatables(child row) when a string value from database has a linebreak/newline
Link to test case: no link
Debugger code (debug.datatables.net):
Error messages shown: No error message just no data display at all
Description of problem:
I'm using datatables child rows to display the comment data gathered from kiosk.
I noticed that when there's a new line or line break from the input value on the text area, the datatable stops working.
I have to delete the row data with linebreak to make it display the values again.
I also tried to replace the linebreak\new line string value before saving the comment to the database.
issue still persists.
can someone help me. thank you!
Answers
I would start by looking at what your equivalent for the
format()
function is doing.Maybe you need to convert the newline to the HTML newline
<br>
or createpre
tag. If you still need help then please create a simple test case with an example of your data and the problem so we can help debug.https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin