diff --git a/modules/ui/feature_list.js b/modules/ui/feature_list.js
index ac098a0c8..302c1bbc2 100644
--- a/modules/ui/feature_list.js
+++ b/modules/ui/feature_list.js
@@ -255,6 +255,7 @@ export function uiFeatureList(context) {
.attr('class', 'entity-name');
list.selectAll('.no-results-item .entity-name')
+ .html('')
.call(t.htmlDom('geocoder.no_results_worldwide'));
if (services.geocoder) {
diff --git a/modules/ui/fields/restrictions.js b/modules/ui/fields/restrictions.js
index f5d5bf712..6af0c854d 100644
--- a/modules/ui/fields/restrictions.js
+++ b/modules/ui/fields/restrictions.js
@@ -151,6 +151,7 @@ export function uiFieldRestrictions(field, context) {
});
selection.selectAll('.restriction-distance-text')
+ .html('')
.call(displayMaxDistance(_maxDistance));
@@ -193,6 +194,7 @@ export function uiFieldRestrictions(field, context) {
});
selection.selectAll('.restriction-via-way-text')
+ .html('')
.call(displayMaxVia(_maxViaWay));
}
@@ -463,7 +465,7 @@ export function uiFieldRestrictions(field, context) {
var placeholders = {};
['from', 'via', 'to'].forEach(function(k) {
- placeholders[k] = '' + t('restriction.help.' + k) + '';
+ placeholders[k] = { html: '' + t('restriction.help.' + k) + '' };
});
var entity = datum && datum.properties && datum.properties.entity;
@@ -490,7 +492,7 @@ export function uiFieldRestrictions(field, context) {
var clickSelect = (!_fromWayID || _fromWayID !== way.id);
help
.append('div') // "Click to select FROM {fromName}." / "FROM {fromName}"
- .call(t.htmlDom('restriction.help.' + (clickSelect ? 'select_from_name' : 'from_name'), {
+ .html(t.html('restriction.help.' + (clickSelect ? 'select_from_name' : 'from_name'), {
from: placeholders.from,
fromName: displayName(way.id, vgraph)
}));
@@ -524,7 +526,7 @@ export function uiFieldRestrictions(field, context) {
help
.append('div') // "FROM {fromName} TO {toName}"
- .call(t.htmlDom('restriction.help.from_name_to_name', {
+ .html(t.html('restriction.help.from_name_to_name', {
from: placeholders.from,
fromName: displayName(datum.from.way, vgraph),
to: placeholders.to,
@@ -544,7 +546,7 @@ export function uiFieldRestrictions(field, context) {
help
.append('div') // "VIA {viaNames}"
- .call(t.htmlDom('restriction.help.via_names', {
+ .html(t.html('restriction.help.via_names', {
via: placeholders.via,
viaNames: names.join(', ')
}));
@@ -553,7 +555,7 @@ export function uiFieldRestrictions(field, context) {
if (!indirect) {
help
.append('div') // Click for "No Right Turn"
- .call(t.htmlDom('restriction.help.toggle', { turn: nextText.trim() }));
+ .html(t.html('restriction.help.toggle', { turn: { html: nextText.trim() } }));
}
highlightPathsFrom(null);
@@ -571,7 +573,7 @@ export function uiFieldRestrictions(field, context) {
if (_fromWayID) {
help
.append('div') // "FROM {fromName}"
- .call(t.htmlDom('restriction.help.from_name', {
+ .html(t.html('restriction.help.from_name', {
from: placeholders.from,
fromName: displayName(_fromWayID, vgraph)
}));
@@ -579,7 +581,7 @@ export function uiFieldRestrictions(field, context) {
} else {
help
.append('div') // "Click to select a FROM segment."
- .call(t.htmlDom('restriction.help.select_from', {
+ .html(t.html('restriction.help.select_from', {
from: placeholders.from
}));
}