[PR #1665] [MERGED] fix: <br> is not escaped in output text #7542

Closed
opened 2025-11-11 17:29:39 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/1665
Author: @dannyl1u
Created: 4/22/2024
Status: Merged
Merged: 4/22/2024
Merged by: @tjbck

Base: devHead: fix/html-br-tag-escaped


📝 Commits (2)

  • 8e94618 fix:
    is not escaped in output text
  • 40c1b49 chore: run format

📊 Changes

1 file changed (+0 additions, -1 deletions)

View changed files

📝 src/lib/utils/index.ts (+0 -1)

📄 Description

Pull Request Checklist

  • Description: Briefly describe the changes in this pull request.
  • Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
  • Documentation: Have you updated relevant documentation?
  • Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?

close #1663


Description

Removes the replacement of <br> tags with \n newlines, so they are shown in code blocks.


Changelog Entry

Fixed

  • <br> tags in code blocks being rendered as newlines

Removed

  • replacement of <br> tags with \n newlines

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/1665 **Author:** [@dannyl1u](https://github.com/dannyl1u) **Created:** 4/22/2024 **Status:** ✅ Merged **Merged:** 4/22/2024 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `fix/html-br-tag-escaped` --- ### 📝 Commits (2) - [`8e94618`](https://github.com/open-webui/open-webui/commit/8e94618c514b3c67ceeea7d2fb3c0f43ef7d22d7) fix: <br> is not escaped in output text - [`40c1b49`](https://github.com/open-webui/open-webui/commit/40c1b49e6db6abb7a13d4172b076364e86d59a65) chore: run format ### 📊 Changes **1 file changed** (+0 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/lib/utils/index.ts` (+0 -1) </details> ### 📄 Description ## Pull Request Checklist - [x] **Description:** Briefly describe the changes in this pull request. - [x] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description. - [x] **Documentation:** Have you updated relevant documentation? - [x] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation? close #1663 --- ## Description Removes the replacement of `<br>` tags with \n newlines, so they are shown in code blocks. --- ### Changelog Entry ### Fixed - `<br>` tags in code blocks being rendered as newlines ### Removed - replacement of `<br>` tags with \n newlines --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-11 17:29:39 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#7542