agent-zero/webui
Frederic Thomas 9b6be5214c
Fix TTS cleanText function to properly extract text from HTML
The cleanText() function was using broken regex patterns that resulted in
mangled HTML fragments being returned instead of clean text. This caused
TTS to only speak the last segment of responses.

Changes:
- Replace broken regex HTML parsing with DOMParser (browser native)
- Properly extract text content while preserving all readable text
- Replace <pre> and <code> tags with placeholder before text extraction
- Add fallback for edge cases where DOMParser might fail

Before: cleanText output was '</pre> distribution in version.</p>'
After: cleanText output is 'Linux Distribution...See code attached...version.'

Fixes #901

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-14 13:57:41 +00:00
..
components Fix TTS cleanText function to properly extract text from HTML 2026-01-14 13:57:41 +00:00
css projects prototype, email parser 2025-10-28 09:04:17 +01:00
js Squashed commit of the following: 2025-11-13 09:00:10 +01:00
public Create update_checker.svg 2025-11-19 12:37:34 +01:00
vendor connectivity and other docs 2025-08-07 15:39:05 +02:00
index.css fix attachments alignment 2025-11-17 13:57:09 +01:00
index.html fixing tasks/projects 2025-11-13 09:24:38 +01:00
index.js Merge branch 'pr/794' into development 2025-11-04 13:06:10 +01:00
login.css Enhance: More polished single-user login page 2025-09-01 02:12:49 -07:00
login.html Enhance: More polished single-user login page 2025-09-01 02:12:49 -07:00