Rich text editor duplicates some backslashes
<!--IssueSummary start--> <details> <summary> Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards. </summary> - [Work on this issue](https://contributors.gitlab.com/manage-issue?action=work&projectId=278964&issueIid=507450) - [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=507450) </details> <!--IssueSummary end--> <!--- Please read this! Before opening a new issue, make sure to search for keywords in the issues filtered by the "regression" or "type::bug" label: - https://gitlab.com/gitlab-org/gitlab/issues?label_name%5B%5D=regression - https://gitlab.com/gitlab-org/gitlab/issues?label_name%5B%5D=type::bug and verify the issue you're about to submit isn't a duplicate. ---> ### Summary In some cases, editing (an issue or a wiki page) using rich text editing double some backslashes. (Since the doubling is done over and over - `\` becomes `\\`becomes `\\\\`… - we ended up with some hundreds of backlashes in some of our Wiki pages.) ### Steps to reproduce - Create an issue or wiki page containing ``` - aaaa - https://gitlab.com/gitlab-org/gitlab/-/issues/123.\ quux ``` - We get: ![image](https://gitlab.com/-/project/278964/uploads/6b6008059e1615fa559fe3344401d22c/image.png) - Edit the issue using using rich text editing and add a bullet: ![image](https://gitlab.com/-/project/278964/uploads/de4c51f80fe7f8848c68ebc8aca4cf62/image.png) - Save. We get: ![image](https://gitlab.com/-/project/278964/uploads/8ee0ae157f24eccdcf579b9d9ee33912/image.png) - Edit the issue using using rich text editing and add a bullet: ![image](https://gitlab.com/-/project/278964/uploads/fe6c125b640fbff77b4f7b544815ca0f/image.png) - Save. We get: ![image](https://gitlab.com/-/project/278964/uploads/93adfc2cadfd8d5b6c79c470a4d8b48a/image.png) - and so on… ### Example Project This seems to be reproducible on any project I tested on gitlab.com. ### What is the current *bug* behavior? In some cases, the backslashes are duplicated. Some cases are when the backslash is after a URL toward an issue or a wiki page. But I believe there are other conditions triggering the bug. We have cleaned our Wiki pages since and there is no such occurrences since, I can dive in the Wiki Git history if helpful. ### What is the expected *correct* behavior? Backslashes should not be duplicated. ### Relevant logs and/or screenshots N/A ### Output of checks This bug happens on GitLab.com #### Results of GitLab environment info N/A #### Results of GitLab application Check <!-- Input any relevant GitLab application check information if needed. --> N/A ### Possible fixes N/A
issue