Просмотр исходного кода

Merge pull request #10152 from overleaf/ii-settings-sso-unescape-characters

[web] Settings page incorrect character escaping

GitOrigin-RevId: 3bd27a905394d5476487038b4d30ed208d6901ac
ilkin-overleaf 4 лет назад
Родитель
Сommit
feb5ae56f5

+ 4 - 0
services/web/frontend/js/features/settings/components/emails/add-email/sso-linking-info.tsx

@@ -30,6 +30,8 @@ function SsoLinkingInfo({ domainInfo, email }: SSOLinkingInfoProps) {
           i18nKey="to_add_email_accounts_need_to_be_linked_2"
           components={[<strong />]} // eslint-disable-line react/jsx-key
           values={{ institutionName: domainInfo.university.name }}
+          // eslint-disable-next-line react/jsx-boolean-value
+          shouldUnescape={true}
         />
       </p>
       <p>
@@ -37,6 +39,8 @@ function SsoLinkingInfo({ domainInfo, email }: SSOLinkingInfoProps) {
           i18nKey="doing_this_will_verify_affiliation_and_allow_log_in_2"
           components={[<strong />]} // eslint-disable-line react/jsx-key
           values={{ institutionName: domainInfo.university.name }}
+          // eslint-disable-next-line react/jsx-boolean-value
+          shouldUnescape={true}
         />{' '}
         <a
           href="/learn/how-to/Institutional_Login"