HTML Rendering
Create rich, interactive responses instead of plain text
Overview
One of ragistry's key features is the ability to generate structured HTML responses. Instead of returning just text, the chatbot can create product cards, comparison tables, interactive lists, and more.
HTML Capabilities
Product Cards
Display products with images, prices, ratings, and purchase links in attractive cards
Comparison Tables
Create structured comparisons with columns for features, prices, and specifications
Interactive Lists
Generate ordered or unordered lists with rich content elements
Security
All HTML output is sanitized with DOMPurify to prevent XSS attacks. Only safe tags and attributes are allowed, while potentially dangerous scripts are removed.