Skip to content

Commit 7e70c5f

Browse files
Fix escaping of placeholder strings
Signed-off-by: Raimund Schlüßler <[email protected]>
1 parent 17ee37c commit 7e70c5f

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/components/TaskBody.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ export default {
322322
* @returns {String} the placeholder string to show
323323
*/
324324
subtasksCreationPlaceholder() {
325-
return this.$t('tasks', 'Add a subtask to "{task}"…', { task: this.task.summary })
325+
return this.$t('tasks', 'Add a subtask to "{task}"…', { task: this.task.summary }, undefined, { sanitize: false, escape: false })
326326
},
327327
328328
/**

src/components/TheCollections/Calendar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export default {
9999
},
100100
101101
inputString() {
102-
return this.$t('tasks', 'Add a task to "{task}"…', { task: this.calendar.displayName })
102+
return this.$t('tasks', 'Add a task to "{task}"…', { task: this.calendar.displayName }, undefined, { sanitize: false, escape: false })
103103
},
104104
105105
/**

src/components/TheCollections/General.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,13 @@ export default {
109109
inputString() {
110110
switch (this.collectionId) {
111111
case 'starred':
112-
return this.$t('tasks', 'Add an important task to "{calendar}"…', { calendar: this.calendar.displayName })
112+
return this.$t('tasks', 'Add an important task to "{calendar}"…', { calendar: this.calendar.displayName }, undefined, { sanitize: false, escape: false })
113113
case 'today':
114-
return this.$t('tasks', 'Add a task due today to "{calendar}"…', { calendar: this.calendar.displayName })
114+
return this.$t('tasks', 'Add a task due today to "{calendar}"…', { calendar: this.calendar.displayName }, undefined, { sanitize: false, escape: false })
115115
case 'current':
116-
return this.$t('tasks', 'Add a current task to "{calendar}"…', { calendar: this.calendar.displayName })
116+
return this.$t('tasks', 'Add a current task to "{calendar}"…', { calendar: this.calendar.displayName }, undefined, { sanitize: false, escape: false })
117117
default:
118-
return this.$t('tasks', 'Add a task to "{calendar}"…', { calendar: this.calendar.displayName })
118+
return this.$t('tasks', 'Add a task to "{calendar}"…', { calendar: this.calendar.displayName }, undefined, { sanitize: false, escape: false })
119119
}
120120
},
121121
...mapGetters({

src/components/TheCollections/Week.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export default {
104104
},
105105
106106
inputString() {
107-
return this.$t('tasks', 'Add a task due today to "{calendar}"…', { calendar: this.calendar.displayName })
107+
return this.$t('tasks', 'Add a task due today to "{calendar}"…', { calendar: this.calendar.displayName }, undefined, { sanitize: false, escape: false })
108108
},
109109
},
110110
methods: {

0 commit comments

Comments
 (0)