# Bug OP-18449 - Can't move hierarchy element underneath an element with an "&" symbol in its title

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module | Administration / Custom fields / Hierarchy, Frontend components and Primer design system / TreeView |
| Target versions | 17.1.0 |
| Observed in versions |  |
| Sprint | 17.1.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| 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 | Henriette Darge |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Steps to reproduce

1.  Create a hierarchy field with two elements in it, of which one must contain an "&" symbol

2.  Try to change the parent of the other element underneath the one with an "&" symbol

### What is the buggy behavior?

  - The element with an "&" symbol can't be selected as a parent

### What is the expected behavior?

  - The element with an "&" symbol can be selected as a parent

### Screenshots and other files

"&" symbol not working:

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

without "&" symbol its working:

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

### Environment information

**OpenProject installation type**

  - Docker-compose installation

**OpenProject version**

v16.6.1

**Browser**

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

**Operating System**

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

**Language**

German
