mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-11 00:04:08 -05:00
v0.3.13 renders <> characters as html escape sequences #1794
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Nekuromento on GitHub (Aug 16, 2024).
Bug Report
Installation Method
Official docker image
Environment
Confirmation:
Expected Behavior:
Model output is displayed verbatim in the chat UI.
Actual Behavior:
Model output is escaped for injection into HTML but is instead displayed as text resulting in visible HTML escape sequences.
Description
Bug Summary:
If model output contains
<or>it is rendered as<and>There are no errors in browser console.
Reproduction Details
Steps to Reproduce:
Ask the model to print <THOUGHT>
Logs and Screenshots
Screenshots/Screen Recordings:
Additional Information
[Include any additional details that may help in understanding and reproducing the issue. This could include specific configurations, error messages, or anything else relevant to the bug.]
Note
If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!
@tjbck commented on GitHub (Aug 16, 2024):
Fixed on dev.
@Nekuromento commented on GitHub (Aug 16, 2024):
I just checked
devdocker image and unless the changes have to yet landed on nightly build its not fixed and its arguably worse.In
0.3.12pseudo-xml tags output from model is rendering just fine:In
0.3.13tags were displayed w/ HTML escape sequences:In
devtags are not displayed at all because they are treated as actual HTML tags:I think
0.3.12had correct bahaviour and now its broken even more.@tjbck commented on GitHub (Aug 16, 2024):
Pushed a fix on dev, let me know if the issue persists
@Nekuromento commented on GitHub (Aug 16, 2024):
Thank you. I can confirm that pseudo-xml tags now render correctly but it seems there's now an issue with markdown code block and mermaid diagram detection.
v0.3.12 renders everything correctly:
dev displays raw markdown instead of rendering it: