Skip to content

Commit 81a01fe

Browse files
authored
Merge pull request #3215 from nextcloud/fix/3213-dont-escape-aria-labels
fix(a11y): Prevent escaping of aria-labels in QuestionLong and QuestionShort components
2 parents c876c78 + f99a850 commit 81a01fe

2 files changed

Lines changed: 18 additions & 6 deletions

File tree

β€Žsrc/components/Questions/QuestionLong.vueβ€Ž

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,15 @@
1313
<textarea
1414
ref="textarea"
1515
:aria-label="
16-
t('forms', 'A long answer for the question β€œ{text}”', {
17-
text,
18-
})
16+
t(
17+
'forms',
18+
'A long answer for the question β€œ{text}”',
19+
{
20+
text,
21+
},
22+
undefined,
23+
{ escape: false },
24+
)
1925
"
2026
:placeholder="submissionInputPlaceholder"
2127
:disabled="!readOnly"

β€Žsrc/components/Questions/QuestionShort.vueβ€Ž

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,15 @@
1313
<input
1414
ref="input"
1515
:aria-label="
16-
t('forms', 'A short answer for the question β€œ{text}”', {
17-
text,
18-
})
16+
t(
17+
'forms',
18+
'A short answer for the question β€œ{text}”',
19+
{
20+
text,
21+
},
22+
undefined,
23+
{ escape: false },
24+
)
1925
"
2026
:placeholder="submissionInputPlaceholder"
2127
:disabled="!readOnly"

0 commit comments

Comments
Β (0)