Underscore "_" character in table data causes mixup
Underscore "_" character in table data causes mixup
diatomin
Posts: 2Questions: 0Answers: 0
Hi guys,
I'm wondering if anyone else has encountered this problem with v.1.7.4 of Datatables:
I've noticed that when I've an email entry with an underscore (the character "_") in one of the table cells, datatables will not display the underscore. If I view the HTML code, the email is properly expressed inside . Ex:
Source code:
john_doe@mail.com
What's shown in Datatables:
john doe@mail.com
When I've two entries with the above condition, datatables shows the two email addresses concatenated. Ex:
I've john_doe@mail.com and jane_doe@mail.com. Data tables will show the following in the two rows that have an email with an underscore character:
john doe@mail.comjane_doe@mail.com
I'm using Firefox 3.6 and 4 btw. Is there any way this can be fixed by myself or perhaps this is an old issue and someone can point me to DIY patch? Thanks, and a wonderful piece of work Allan :)
Cheers,
Les
I'm wondering if anyone else has encountered this problem with v.1.7.4 of Datatables:
I've noticed that when I've an email entry with an underscore (the character "_") in one of the table cells, datatables will not display the underscore. If I view the HTML code, the email is properly expressed inside . Ex:
Source code:
john_doe@mail.com
What's shown in Datatables:
john doe@mail.com
When I've two entries with the above condition, datatables shows the two email addresses concatenated. Ex:
I've john_doe@mail.com and jane_doe@mail.com. Data tables will show the following in the two rows that have an email with an underscore character:
john doe@mail.comjane_doe@mail.com
I'm using Firefox 3.6 and 4 btw. Is there any way this can be fixed by myself or perhaps this is an old issue and someone can point me to DIY patch? Thanks, and a wonderful piece of work Allan :)
Cheers,
Les
This discussion has been closed.
Replies
$("td:contains('_')").text( $("td:contains('_')").text().replace("_", " ") );
No problems after commenting that line out ^-^