CATcher-org / CATcher-org/CATcher

Preview has issues with HTML tags

Open
#1,017 2 comments 0 reactions 0 assignees View on GitHub
category.Bug p.Zero
Dominant language
TypeScript
Stars
92
Forks
85
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
Preview has issues with HTML tags.

**To Reproduce**
Steps to reproduce the behavior:

1. Start writing a new issue
2. Write the following text
```
hiconsole.log(1);hi
```
3. Click preview.
4. The text is not rendered properly. No scripts seem to be executed when clicking on the button.

**Expected behavior**
The tag should appear and the button should not appear, like the preview on GitHub
![image](https://user-images.githubusercontent.com/62918570/196049506-1cc91dba-7915-43d7-8e2e-a3fa1baaeda6.png)

**Screenshots**
(What actually appears)
![image](https://user-images.githubusercontent.com/62918570/196049480-6d711839-caa1-4333-96de-eca0cd26e12b.png)

Desktop (please complete the following information):
- OS: Windows 10
- Browser: Chrome
- Browser Version: Version 106.0.5249.103 (Official Build) (64-bit)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start the application and reproduce the issue by entering the provided HTML-tag example while creating a new issue, then opening Preview. Trace the preview rendering entry point from that flow. Done means the script tag is displayed as text, the button is not shown, and the behavior matches the expected GitHub preview.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.