# Bug OP-19113 - Double escaping of special characters in some link titles

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-19113

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Translations, Modules and project features / My account |
| Target versions | 17.3.0 |
| Observed in versions | 17.2.0 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) | 17.2.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Oliver Günther |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Switch to French

2.  Go to User menu (top right) \> Paramètres du compte ("Account parameters" in English) \> Jetons d'accès (in the side bar, "Access tokens" in English)

3.  Look at the iCalendar section

### What is the buggy behavior?

  - The text of the link is incorrect: the `'` in it is displayed as `&#39;`.

Infos:

  - The i18n key is `fr.my_account.access_tokens.ical.text_hint_link`.

  - The i18n value is "Les jetons iCalendar permettent aux utilisateurs de \[s'abonner aux calendriers OpenProject\](docs\_url) et d'afficher des informations à jour sur les lots de travaux provenant de clients externes."

  - The text `s'abonner aux calendriers OpenProject` gets escaped once by the `link_translate` method into `s&#39;abonner aux calendriers OpenProject`.

  - The text is then escaped a second time by the component, rendering `&amp;#39;`

### What is the expected behavior?

1.  Text should display the original text with the quote, not the escaped version of it.

### Screenshots and other files

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/920089/content">

### Environment information

<br>

**OpenProject version**

17.2 / 17.3

**Browser**

- [x] Chrome
- [x] Firefox
- [x] Safari
- [ ] Mobile Safari
- [ ] Other (please specify)

**Operating System**

- [ ] Windows
- [x] Mac OS X
- [ ] Mobile iOS
- [ ] Mobile Android
- [ ] Linux (please specify distro)
- [ ] Chrome OS
- [ ] Other (please specify)

**Language**

French, but can probably happen in other cases.
