fix: resolve relative image paths in HTML files

- Add HtmlRenderer component to handle relative image paths in HTML files
- Convert relative image paths to absolute paths based on HTML file location
- Load images as data URLs for proper rendering
- Add DOMPurify for HTML sanitization
- Preserve original img tag format (self-closing or not)

Fixes issue where images with relative paths (e.g., src="ticket_volume_by_area.png")
in HTML files were not rendering correctly.
This commit is contained in:
4pmtong 2026-01-16 22:01:41 +08:00
parent aa0597bcff
commit 30ee15d754

File diff suppressed because it is too large Load diff