Sanitize untrusted text for safe use in a Markdown table cell.
Escapes pipe characters, backslashes, and HTML entities, then normalizes whitespace to prevent table layout corruption from external MCP data.
Untrusted cell text
Sanitized text safe for Markdown table cells
Sanitize untrusted text for safe use in a Markdown table cell.
Escapes pipe characters, backslashes, and HTML entities, then normalizes whitespace to prevent table layout corruption from external MCP data.