Handle spaces in stage filter (#3153)

* Handle spaces in stage filter

#3073

* Fix JS lint issue

Co-authored-by: Lars Hvam <larshp@hotmail.com>
This commit is contained in:
Fabian Lupa 2020-01-14 17:01:56 +01:00 committed by Lars Hvam
parent 753d66cad3
commit c4f4c713b6

View File

@ -452,7 +452,7 @@ StageHelper.prototype.applyFilterToRow = function (row, filter) {
if (elem.firstChild && elem.firstChild.tagName === "A") elem = elem.firstChild;
return {
elem: elem,
plainText: elem.innerText, // without tags
plainText: elem.innerText.replace(/ /g, "\u00a0"), // without tags, with encoded spaces
curHtml: elem.innerHTML
};
}, this);