mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-14 21:28:11 +02:00
Make t function return a span element with a lang attribute unless html: false is specified in the options (re: #7963)
Update `text` functions to `html` to support inserting the `span` elements Specify `html: false` for various instances where a `span` is not desired, e.g. `placeholder` and `title` attributes
This commit is contained in:
@@ -28,7 +28,7 @@ export function validationFormatting() {
|
||||
.enter()
|
||||
.append('div')
|
||||
.attr('class', 'issue-reference')
|
||||
.text(t('issues.invalid_format.email.reference'));
|
||||
.html(t('issues.invalid_format.email.reference'));
|
||||
}
|
||||
/*
|
||||
function showReferenceWebsite(selection) {
|
||||
@@ -37,7 +37,7 @@ export function validationFormatting() {
|
||||
.enter()
|
||||
.append('div')
|
||||
.attr('class', 'issue-reference')
|
||||
.text(t('issues.invalid_format.website.reference'));
|
||||
.html(t('issues.invalid_format.website.reference'));
|
||||
}
|
||||
|
||||
if (entity.tags.website) {
|
||||
|
||||
Reference in New Issue
Block a user