Commit e0c9f2f
committed
MBS-10672: Format agent formelements with Markdown and add unit tests
- Add format_text() for label and explanation fields in format_output()
- Preserve newValue unchanged for form field injection
- Refactor test structure with setUp() method
- Add comprehensive unit tests with data providers:
- Label/explanation Markdown formatting
- newValue preservation (HTML, scripts, code)
- chatoutput intro/outro formatting
- Invalid input handling
- Missing fields handling
- Security: script tag sanitization in chatoutput1 parent b006a9e commit e0c9f2f
2 files changed
+822
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
220 | 240 | | |
221 | 241 | | |
222 | 242 | | |
| |||
0 commit comments