[Bug]: Error in AI Chat View when HTML tag is included in the message
Current Behavior
Facing an issue in the AI Chat View when an HTML tag is included in the message. Once the error occurs, there doesn’t seem to be a way to recover or return to the normal state, except by closing the section and starting a new one.
Steps to Reproduce
The following prompt causes the AI Chat to break:
What is <img> tag?
Not all HTML tags break the AI Chat View, but some change the input prompt's formatting.
Expected Behavior
The input should be accepted normally by the AI Chat and return a proper response.
The following prompt works correctly because of the use of backticks:
How HTML `<img>` works?
Possible Solution
While passing text to the Markdown component, it should be sanitized to filter out or properly handle inputs that could break the AI Chat. We may need to escape HTML-related characters to prevent formatting or rendering issues.
Steps To Reproduce
Steps to Reproduce
The following prompt causes the AI Chat to break:
What is <img> tag?
Wave Version
0.11.3
Platform
macOS
OS Version/Distribution
Pop!_OS 22.04 LTS
Architecture
arm64
Anything else?
No response
Questionnaire
- [ ] I'm interested in fixing this myself but don't know where to start
- [ ] I would like to fix and I have a solution
- [ ] I don't have time to fix this right now, but maybe later