<p>I ran into a minor issue of OpenStreetMap.org's search interface when I was verifying recently-entered data: If I used "Show address" right-click menu on a place which its name has an ampersand character, it will be displayed as <code>&amp;</code> escape sequence in the search result rather than a literal <code>&</code>.</p>
<p>Exact steps to reproduce:</p>
<ul>
<li>Start a browser (with JavaScript enabled).</li>
<li>Go to the <a href="https://www.openstreetmap.org/" rel="nofollow">main OpenStreetmap page</a>.</li>
<li>Go to coordinate <a href="https://www.openstreetmap.org/#map=19/13.77088/100.50507&layers=N" rel="nofollow">13.77088 N 100.50507 E at zoom level 19</a>.</li>
<li>You will see a restaurant at the center of the map  (<a href="https://user-images.githubusercontent.com/5958794/33258781-4391ca20-d38d-11e7-9172-a1862ce0567c.png" rel="nofollow">screenshot</a>).</li>
<li>Right-click on the restaurant, choose "Show address".</li>
<li>Reverse-geocoding search result <a href="https://www.openstreetmap.org/search?query=13.77088%2C100.50507#map=19/13.77088/100.50507&layers=N" rel="nofollow">will show up</a>.</li>
<li>In the result, you would see that restaurant name is <strong>shown as <code>MM Steak&amp;Grill</code> rather than the correct <code>MM Steak&Grill</code></strong>. (<a href="https://user-images.githubusercontent.com/5958794/33258827-6393e826-d38d-11e7-9bad-aba4cc8087e6.png" rel="nofollow">Screenshot</a>)</li>
</ul>
<p>Notes:</p>
<ul>
<li>I'm not sure if the problem affect characters other than ampersand or not (e.g. <code><</code> and <code>></code>).</li>
<li>This problem <strong>does not</strong> affect searching by place name; i.e. typing <code>MM Steak&Grill</code> in the search box <a href="https://www.openstreetmap.org/search?query=MM%20Steak%26Grill#map=19/13.77088/100.50507&layers=N" rel="nofollow">shows correct name in the result</a> (<a href="https://user-images.githubusercontent.com/5958794/33258881-90463158-d38d-11e7-9a4e-2838b995e08f.png" rel="nofollow">screenshot</a>).</li>
<li>This problem <strong>does not</strong> affect <a href="https://www.openstreetmap.org/way/542901374#map=19/13.77087/100.50507&layers=N" rel="nofollow">place information display</a> (<a href="https://user-images.githubusercontent.com/5958794/33258902-a0245172-d38d-11e7-9076-2ce5b7ab6d57.png" rel="nofollow">screenshot</a>).</li>
<li>This problem <strong>does not</strong> affect search done directly on <a href="https://nominatim.openstreetmap.org/" rel="nofollow">nominatim.openstreetmap.org</a>, whether searching <a href="https://nominatim.openstreetmap.org/search.php?q=13.77088%2C100.50507&polygon_geojson=1&viewbox=" rel="nofollow">by coordinate</a> (<a href="https://user-images.githubusercontent.com/5958794/33258932-bb23d89e-d38d-11e7-9a02-1040bb6653f9.png" rel="nofollow">screenshot</a>) or <a href="https://nominatim.openstreetmap.org/search.php?q=MM+Steak%26Grill&polygon_geojson=1&viewbox=" rel="nofollow">by place name</a> (<a href="https://user-images.githubusercontent.com/5958794/33258945-ca5412b6-d38d-11e7-98fc-606d33d91f3e.png" rel="nofollow">screenshot</a>).</li>
<li>This problem <strong>does not</strong> affect <a href="https://nominatim.openstreetmap.org/details.php?place_id=220797400" rel="nofollow">place information display on nominatim.openstreetmap.org</a> (<a href="https://user-images.githubusercontent.com/5958794/33258980-eb943ba4-d38d-11e7-8c85-100f3754fb88.png" rel="nofollow">screenshot</a>).</li>
<li>The relevant changeset for this object at the time of this writing is <a href="https://www.openstreetmap.org/changeset/54092335" rel="nofollow">54092335</a>, authored by me through OpenStreetMap.org's Potlatch 2 editor. From a look at changeset XML, and results above, I believe this is not a data problem.</li>
</ul>
<p>Browser: Opera 11.61 (Win32)<br>
System: Microsoft Windows XP Professional SP3</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/1690">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABWnLWN67sriJmpCw-btxth-c0dYwAS0ks5s6n_agaJpZM4QrVdN">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABWnLdv_LWQIGgyi3FDxcp5AGUBuSNq6ks5s6n_agaJpZM4QrVdN.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/openstreetmap/openstreetmap-website/issues/1690"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/openstreetmap/openstreetmap-website","title":"openstreetmap/openstreetmap-website","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/openstreetmap/openstreetmap-website"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Ampersand in place name shown as \"\u0026amp;\" in reverse-geocoding search result (#1690)"}],"action":{"name":"View Issue","url":"https://github.com/openstreetmap/openstreetmap-website/issues/1690"}}}</script>