Steps to reproduce:
Go to RAGConfig, set the system prompt to any text containing a single quote (e.g. after a 'Additional Information' headline), save,
then open the chat page — it breaks silently
Root cause: yacychat.html embeds the system prompt directly into a JS single-quoted string literal (const SYSTEM_PROMPT = '#[system_prompt]#') without escaping
Fix: Escape the value in yacychat.java before passing it to the template (backslashes, single quotes, and newlines)
Steps to reproduce:
Go to RAGConfig, set the system prompt to any text containing a single quote (e.g. after a 'Additional Information' headline), save,
then open the chat page — it breaks silently
Root cause: yacychat.html embeds the system prompt directly into a JS single-quoted string literal (const SYSTEM_PROMPT = '#[system_prompt]#') without escaping
Fix: Escape the value in yacychat.java before passing it to the template (backslashes, single quotes, and newlines)