mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-25 12:32:58 -05:00
feat/bug: escape HTML rendering #117
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 @oliverbob on GitHub (Dec 23, 2023).
Bug Report
Description
Bug Summary:
Example code being asked to Phi model:
The meta tag is being escaped by the renderer:
Steps to Reproduce:
[Outline the steps to reproduce the bug. Be as detailed as possible.]
Expected Behavior:
[Describe what you expected to happen.]
Actual Behavior:

The developer console however showed the meta tags:
Environment
Thanks
@anuraagdjain commented on GitHub (Dec 23, 2023):
I was able to replicate this and fix it locally. I can open a PR soon.
Update: Regenerating the message also worked fine for HTML.
@oliverbob commented on GitHub (Dec 23, 2023):
Thanks for responding promptly @anuraagdjain. Can't wait to see this merged.
@tjbck commented on GitHub (Dec 24, 2023):
Btw, I'm also actively taking a look at how we might rectify this issue, not sure If there are any simple solutions.
@anuraagdjain commented on GitHub (Dec 24, 2023):
Do you've steps to replicate ? I'm wondering if the highlightjs before:highlight plugin (docs) could help us.
@tjbck commented on GitHub (Dec 26, 2023):
@anuraagdjain Here's how to reproduce: using openhermes2-mistral:latest model, prompt: Write a meta tag.
If it renders the html code correctly in a code block, you can always regenerate. Thanks!
@oliverbob commented on GitHub (Dec 26, 2023):
I guess just focus on RBAC for now. That's more pressing than this minor issue.