Tabulazer
Tabulazer copied to clipboard
Text columns are sorted with HTML tags included. They should be stripped.
If a column contains HTML tags, the sort includes the HTML tags, which is very confusing.
Example
Dynamic sort row 1
<span>Dynamic <b>sort</b> row 2</span><
<b>Dynamic sort<b> row 3
This is displayed in the browser formatted and without tags It is sorted as
<b>Dynamic sort<b> row 3
<span>Dynamic <b>sort</b> row 2</span><
Dynamic sort row 1
But, to adhere to WYSIWYG, it should be sorted like this:
Dynamic sort row 1
<span>Dynamic <b>sort</b> row 2</span><
<b>Dynamic sort<b> row 3
The solution would be to strip all tags (but not the content within tags) before sorting. There may be many nested tags in a column containing text.