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:
<meta name="og:image" content="https://askai.city/OSS.png">
<meta name="og:description" content="Chat with the world's great AI Models. Explore the latest developments in artificial intelligence and learn about cutting-edge technologies that are transforming our world.">
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
Operating System: Ubuntu 22.04
**Browser: Version 120.0.6099.129 (Official Build) (64-bit)
Thanks
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:
```
<meta name="og:image" content="https://askai.city/OSS.png">
<meta name="og:description" content="Chat with the world's great AI Models. Explore the latest developments in artificial intelligence and learn about cutting-edge technologies that are transforming our world.">
```

**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
- **Operating System:** Ubuntu 22.04
- **Browser: Version 120.0.6099.129 (Official Build) (64-bit)
Thanks
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.
@anuraagdjain commented on GitHub (Dec 23, 2023):
I was able to replicate this and fix it locally. I can open a PR soon.
<img width="782" alt="Screenshot 2023-12-23 at 2 32 35 PM" src="https://github.com/ollama-webui/ollama-webui/assets/4705103/267e106b-6713-4b19-943c-879a78fc3536">
Update: Regenerating the message also worked fine for HTML.
Btw, I'm also actively taking a look at how we might rectify this issue, not sure If there are any simple solutions.
@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.
Do you've steps to replicate ? I'm wondering if the highlightjs before:highlight plugin (docs) could help us.
@anuraagdjain commented on GitHub (Dec 24, 2023):
Do you've steps to replicate ? I'm wondering if the highlightjs before:highlight plugin ([docs](https://highlightjs.readthedocs.io/en/latest/plugin-api.html#before-highlight)) could help us.
@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!
@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!
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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.