ant-design / ant-design/pro-chat

🧐[问题] 换行和html标签问题

Open
#243 2 comments 0 reactions 0 assignees View on GitHub
documentation
Dominant language
TypeScript
Stars
898
Forks
116
PR merge metrics
No merged PRs in 30d

Description

### 🧐 问题描述
返回消息中 含有/n换行, 或者有html标签,应该用什么去实现?
如下图所示,期望文本可以换行,请明示,谢谢
### 💻 示例代码
![Screenshot 2024-06-05 151115](https://github.com/ant-design/pro-chat/assets/6679746/523124b6-a108-4029-afba-926597c5430c)

Contributor guide

No contributing guide indexed for this repository

Research direction

No source file, test, or entry point is named. Start by reproducing the reported newline and HTML rendering behavior from the example and linked screenshot, then identify the chat rendering entry point; completion requires a confirmed expected rendering behavior and a corresponding regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.