Tabulazer icon indicating copy to clipboard operation
Tabulazer copied to clipboard

Text columns are sorted with HTML tags included. They should be stripped.

Open jonada opened this issue 4 years ago • 0 comments

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.

jonada avatar Aug 12 '20 13:08 jonada