From 50e5f7ca9e65ecf6744351f3c746c69981b83f76 Mon Sep 17 00:00:00 2001
From: "John Molakvoæ (skjnldsv)" <skjnldsv@protonmail.com>
Date: Thu, 21 Feb 2019 16:31:50 +0100
Subject: Fix html rendering and default checkbox
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
---
 apps/accessibility/src/App.vue | 19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)

(limited to 'apps/accessibility/src/App.vue')

diff --git a/apps/accessibility/src/App.vue b/apps/accessibility/src/App.vue
index 892e1ae8288..2a3316e59a1 100644
--- a/apps/accessibility/src/App.vue
+++ b/apps/accessibility/src/App.vue
@@ -50,13 +50,28 @@ export default {
 			};
 		},
 		description() {
-			return t('accessibility', 'Universal access is very important to us. We follow web standards and check to make everything usable also without mouse, and assistive software such as screenreaders. We aim to be compliant with the {guidelines} 2.1 on AA level, with the high contrast theme even on AAA level.', {guidelines: this.guidelinesLink})
+			// using the `t` replace method escape html, we have to do it manually :/
+			return t(
+				'accessibility',
+				`Universal access is very important to us. We follow web standards
+				and check to make everything usable also without mouse,
+				and assistive software such as screenreaders.
+				We aim to be compliant with the {guidelines} 2.1 on AA level,
+				with the high contrast theme even on AAA level.`
+			)
+			.replace('{guidelines}', this.guidelinesLink)
 		},
 		guidelinesLink() {
 			return `<a target="_blank" href="https://www.w3.org/WAI/standards-guidelines/wcag/" rel="noreferrer nofollow">${t('accessibility', 'Web Content Accessibility Guidelines')}</a>`
 		},
 		descriptionDetail() {
-			return t('accessibility', 'If you find any issues, don’t hesitate to report them on {issuetracker}. And if you want to get involved, come join {designteam}!', {issuetracker: this.issuetrackerLink, designteam: this.designteamLink})
+			return t(
+				'accessibility',
+				`If you find any issues, don’t hesitate to report them on {issuetracker}.
+				And if you want to get involved, come join {designteam}!`
+			)
+			.replace('{issuetracker}', this.issuetrackerLink)
+			.replace('{designteam}', this.designteamLink)
 		},
 		issuetrackerLink() {
 			return `<a target="_blank" href="https://github.com/nextcloud/server/issues/" rel="noreferrer nofollow">${t('accessibility', 'our issue tracker')}</a>`
-- 
cgit v1.2.3

