(str: string)
| 2 | import { extractTextContent } from "../utils"; |
| 3 | |
| 4 | function escapeHtml(str: string): string { |
| 5 | return str |
| 6 | .replace(/&/g, "&") |
| 7 | .replace(/</g, "<") |
| 8 | .replace(/>/g, ">") |
| 9 | .replace(/"/g, """) |
| 10 | .replace(/'/g, "'"); |
| 11 | } |
| 12 | |
| 13 | function renderMessageHtml(msg: Message, options: ExportOptions): string { |
| 14 | const isUser = msg.role === "user"; |
no outgoing calls
no test coverage detected