iD
iD copied to clipboard
iD display double quote values with the escaping \ character in text mode
URL
https://www.openstreetmap.org/edit?way=193112329#map=18/-22.91583/-43.62896
How to reproduce the issue?
- Some OSM elements have double quote in their names. Consider this way: https://www.openstreetmap.org/way/193112329. It's
old_namevalue is:Viaduto José Ramos de Oliveira "Zé Cocada". The way this data is retrieved/saved from/to OSM database, the double quotes gets "escaped" and thus the character"in the middle of strings is stored as\". - On list mode, the double quote character is shown correctly:
- However on text mode, the double quote character is shown with the escaping character:
- Since
key=valuepairs are not quoted in this text list (i.e. they are notkey="value") I think it does not make sense to display the double quotes with\.
Screenshot(s) or anything else?
No response
Which deployed environments do you see the issue in?
Released version at openstreetmap.org/edit
What version numbers does this issue effect?
2.27.1
Which browsers are you seeing this problem on?
Chrome
I will try to fix the issue !!
The escaping of the quotes here does indeed seem superfluous, as the only two characters in the text tag editor field that need special handling would be newlines and =. One might even ignore the =, as it practically does not exist in tag keys.