HumanSignal / HumanSignal/label-studio

Labeling Instructions are being displayed as raw HTML in Label Studio Enterprise

Open
#4,559 1 comment 0 reactions 1 assignee Claimed by @makseq View on GitHub
community:bug community:reviewed ls-enterprise
Dominant language
TypeScript
Stars
28.3k
Forks
3.7k
Avg merge
14h
Merged PRs (30d)
15

Description

**Describe the bug**
In Label Studio Enterprise, the Labeling Instructions load properly as rendered HTML when displayed prior to annotating, but when clicking the `i` to show the instructions once in the labeling interface, it just shows the raw html.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to a task for labeling in Label Studio Enterprise.
2. Click on the `i` in the bottom of pane.
3. See error

**Expected behavior**
Rendered HTML instructions.

**Screenshots**
This is what the instructions look like when initially displayed at the start of annotation (and how we would expect them to look when the `i` is clicked to show the instructions):
![Screen Shot 2023-07-20 at 11 22 54 AM](https://github.com/HumanSignal/label-studio/assets/29578794/ef10ffb2-a87c-493e-b818-4a21f438ac03)

This is what the instructions look like when the `i` is clicked:
![Screen Shot 2023-07-20 at 11 23 04 AM](https://github.com/HumanSignal/label-studio/assets/29578794/28c03dae-9dae-44d2-97fe-2c209c5347d8)

**Environment (please complete the following information):**
- OS: MacOS
- Label Studio Enterprise

**Additional context**
These are the HTML instructions that we set in the Annotations tab of the project settings.
```

table {
font-family: arial, sans-serif;
width: 100%;
border-collapse: collapse;
}
td, th {
border: 1px solid #dddddd;
text-align: center;
padding: 8px;
}

Please read through the eConsult dialogue and evaluate the clinical quality of the specialist responses using the eSQUARE scale. At the bottom, please select as many tags as are relevant.

Grading Scale


Blank
1
2
3
4
5


N/A
Not At All

Acceptable

Exemplary

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.