ItzCrazyKns / Perplexica

Perplexica is an AI-powered search engine. It is an Open source alternative to Perplexity AI
MIT License
13.67k stars 1.3k forks source link

perplexica doesn't properly quote HTML in generated output #204

Open rick-github opened 3 months ago

rick-github commented 3 months ago

Describe the bug If an answer includes HTML, it will be interpreted by the browser, breaking the rendering

To Reproduce Steps to reproduce the behavior:

  1. Go to localhost:3000
  2. select model qwen2:1.5b-instruct-q4_K_M
  3. Type 'create a simple webpage' in the text box
  4. Perplexica will start to render the answer
  5. The browser will start to render the answer
  6. The page goes blank

Expected behavior Perplexica should quote the output so that the browser doesn't think that it should be rendering it.