aws-amplify / aws-amplify/amplify-studio

<Text does not show HTML Encoded Line Feed character correctly

Open
#770 5 comments 0 reactions 0 assignees View on GitHub
feature-request studio-ui
Dominant language
No language data
Stars
135
Forks
32
PR merge metrics
No merged PRs in 30d

Description

### Before creating a new issue, please confirm:

- [X] I have [searched for duplicate or closed issues](https://github.com/aws-amplify/amplify-ui/issues?q=is%3Aissue+) and [discussions](https://github.com/aws-amplify/amplify-ui/discussions).
- [X] I have tried disabling all browser extensions or using a different browser
- [X] I have tried deleting the node_modules folder and reinstalling my dependencies
- [X] I have read the guide for [submitting bug reports](https://github.com/aws-amplify/amplify-ui/blob/main/CONTRIBUTING.md#bug-reports).

### On which framework/platform are you having an issue?

React

### Which UI component?

Other

### How is your app built?

create react app

### What browsers are you seeing the problem on?

Chrome

### Please describe your bug.

This code
```ts

```
renders this result

Screenshot 2022-12-13 at 16 17 23

### What's the expected behaviour?

this site displays

https://emn178.github.io/online-tools/html_decode.html

Screenshot 2022-12-13 at 16 16 56

### Help us reproduce the bug!

try above code specially `

` part

### Code Snippet

```typescript
// Put your code below this line.

```

### Additional information and screenshots

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the provided React example in Chrome, focusing on children containing the HTML-encoded line feed character `
` and `

`. Trace how the rendered text handles those entities; done means the encoded line feeds display as line breaks while ordinary text remains unchanged.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.