# Bug OP-4294 - In repository module diff does not escape HTML tags that are present in the compared code

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 8.3.0 |
| Observed in versions |  |
| Sprint | 8.3.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 |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

Hi,

The correction for bug <mention class="mention" data-id="24961" data-type="work_package" data-text="#24961">#24961</mention> introduced another one: if the code that is compared between two revisions contains HTML tags, those ones are not escaped (like the added span tags). In my case, a button is displayed whereas the normal behaviour would be to display the text: <button …>…</button>

Best regards,

Nicolas Salguero.
