You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Decode special characters when copying grid cells #320
Currently, if the value of a given cell contains special characters (i.e. <, > or &), they will be copied in their HTML-encoded form, thus preventing using the value for things like SQL filters.
The cell value should be decoded upon writing its contents to the clipboard.
Steps to replicate:
CREATETABLEchars (char string);
INSERT INTO chars (char) VALUES ('&');
INSERT INTO chars (char) VALUES ('<');
INSERT INTO chars (char) VALUES ('>');
SELECT*FROM chars;
Then, copy any cell to clipboard and paste elsewhere.
Tested this against current main and the deployed console on demo.questdb.io (console 2.0.0, QuestDB 9.4.3): the repro from the description no longer reproduces. Copied cell values match the displayed text for &, < and >.
The copy path used to read focusedCell.innerHTML while the cell content was HTML-escaped client-side; #519 removed the client-side escaping and switched both rendering and copy to textContent, which fixed this as a side effect. Looks like this one can be closed.
While verifying I ran into the opposite problem: values that legitimately contain entity sequences (e.g. a stored a=1&b=2) get decoded on display and copy. Filed separately as #587.
Activity
omsuneri commentedon Aug 12, 2025
@emrberk can I work on this please assign me !!
felmonon commentedon Jul 14, 2026
Tested this against current main and the deployed console on demo.questdb.io (console 2.0.0, QuestDB 9.4.3): the repro from the description no longer reproduces. Copied cell values match the displayed text for
&,<and>.The copy path used to read
focusedCell.innerHTMLwhile the cell content was HTML-escaped client-side; #519 removed the client-side escaping and switched both rendering and copy totextContent, which fixed this as a side effect. Looks like this one can be closed.While verifying I ran into the opposite problem: values that legitimately contain entity sequences (e.g. a stored
a=1&b=2) get decoded on display and copy. Filed separately as #587.emrberk commentedon Jul 31, 2026
Closing the issue, it is resolved.