iD icon indicating copy to clipboard operation
iD copied to clipboard

iD display double quote values with the escaping \ character in text mode

Open nighto opened this issue 2 years ago • 2 comments

URL

https://www.openstreetmap.org/edit?way=193112329#map=18/-22.91583/-43.62896

How to reproduce the issue?

  1. Some OSM elements have double quote in their names. Consider this way: https://www.openstreetmap.org/way/193112329. It's old_name value 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 \".
  2. On list mode, the double quote character is shown correctly: image
  3. However on text mode, the double quote character is shown with the escaping character: image
  4. Since key=value pairs are not quoted in this text list (i.e. they are not key="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

nighto avatar Sep 06 '23 08:09 nighto

I will try to fix the issue !!

AviralSingh-code avatar Oct 08 '23 06:10 AviralSingh-code

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.

tyrasd avatar May 13 '25 09:05 tyrasd