# flexipage:richText — Rich Text ## Purpose Displays HTML-formatted rich text content on a page. Supports text formatting, headings, lists, links, and inline styles. Content is static (not data-bound). ## Supported Page Types - RecordPage - AppPage - HomePage ## Property Table | Property | Type | Required | Default | Description | |----------|------|----------|---------|-------------| | richTextValue | String (HTML-encoded) | Yes | — | HTML content, entity-encoded for XML | | decorate | Boolean | No | true | Show card-style border/decoration around the content | ## Property Inference Rules | User Intent | Inferred Properties | |-------------|-------------------| | "add rich text with {content}" | `richTextValue` = HTML-encoded version of content | | "add a heading {text}" | `richTextValue` = `<p><b style="font-size: 16px;">{text}</b></p>` | | "add a link to {url}" | `richTextValue` = `<p><a href="{url}" rel="noopener noreferrer" target="_blank">{text}</a></p>` | | "no border" or "borderless" | `decorate` = `false` | | "with card border" or "in a card" | `decorate` = `true` | ## HTML Encoding Rules **CRITICAL:** The `richTextValue` must be double-encoded for XML: 1. Write the desired HTML content 2. Entity-encode ALL HTML characters: - `&` -> `&` (encode FIRST) - `<` -> `<` - `>` -> `>` - `"` -> `"` **Example:** To display `Hello`, the value must be `<b>Hello</b>` **Supported HTML tags:** - `