Escape HTML special characters. Args: text: Text to escape Returns: Escaped text
(self, text: str)
| 217 | f'<div class="info-row"><strong>Model:</strong> {self._escape_html(info["main_model"])}</div>' |
| 218 | ) |
| 219 | |
| 220 | if info.get("timestamp"): |
| 221 | try: |
| 222 | from datetime import datetime |
| 223 | |
| 224 | timestamp = info["timestamp"] |
| 225 | # Parse ISO format timestamp |
| 226 | if isinstance(timestamp, str): |
| 227 | dt = datetime.fromisoformat(timestamp.replace("Z", "+00:00")) |
| 228 | formatted_date = dt.strftime("%Y-%m-%d") |
| 229 | html_parts.append( |
| 230 | f'<div class="info-row"><strong>Generated:</strong> {formatted_date}</div>' |
| 231 | ) |
| 232 | except Exception: |
| 233 | pass |
| 234 | |
| 235 | if info.get("commit_id"): |
| 236 | commit_short = info["commit_id"][:8] |
| 237 | html_parts.append( |
no outgoing calls
no test coverage detected