Sanitize Card Field
sanitize_card_fieldSanitizes Anki card field text by converting inequalities, bare ampersands, pipes, and newlines to safe HTML entities while preserving valid HTML tags for safe Anki rendering.
Instructions
Sanitize a single card field: converts mathematical/clinical inequalities (< 10, > 50, <=, >=) to HTML entities (<, >, ≤, ≥), bare & to &, pipes to |, newlines to , while strictly preserving valid HTML tags (, , , , , , , ). Returns sanitized string and list of fixes applied.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>"
},
"name": "sanitize_card_field"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| is_images_field | No | ||
| convert_markdown | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||