Escape non-ascii characters in exported HTML. Closes #2075.
This commit is contained in:
parent
59a1543ad0
commit
e0cbfe24a5
2 changed files with 9 additions and 1 deletions
|
@ -248,7 +248,7 @@ page << <<EOJ
|
|||
|
||||
var layers = getMapLayers();
|
||||
|
||||
html += '<br /><small><a href="http://#{SERVER_URL}/?lat='+center.lat+'&lon='+center.lon+'&zoom='+zoom+'&layers='+layers+markerUrl+'">'+"#{I18n.t('export.start_rjs.view_larger_map')}"+'</a></small>';
|
||||
html += '<br /><small><a href="http://#{SERVER_URL}/?lat='+center.lat+'&lon='+center.lon+'&zoom='+zoom+'&layers='+layers+markerUrl+'">'+"#{html_escape_unicode(I18n.t('export.start_rjs.view_larger_map'))}"+'</a></small>';
|
||||
|
||||
$("export_html_text").value = html;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue