Quantcast
Viewing all articles
Browse latest Browse all 82150

Question about html inside the <td> .... </td> - How not to include it when sorting?

Hello.

I have a table set up and it's all great. Really thankfull for this tool. However, I recently tried to add some html code to the data.

I have a header ID, under which I have various IDs (all numerical). For example, let's say in our case it is "72". I would like to add a span around it, to change color of some of the text. So the final version instead "72" would be "<span class="green">72</span>".

However when I do this, all of the html code seems to be included when the tables are deciding on the sorting so these results automatically end up at the end of the list. The question is how do I approach this matter in order for the sorting not to include the html?

Thanks in advance,
Adam.

Viewing all articles
Browse latest Browse all 82150

Trending Articles