Skip to main content

getTableEscapedText

Summary

Escapes text for safe output in markdown table cells

Signature

protected getTableEscapedText(text: string): string;

Parameters

text

Type:string Raw text to escape

Returns

Type:string Escapes text for safe output in markdown table cells

Remarks

Table cells require different escaping than regular markdown: - Pipe (|) - Would break table column structure, escaped as &#124; - Quote (") - Escaped as &quot; for attribute safety - HTML entities - &, <, > escaped for safe rendering Note: We don’t escape markdown syntax (*, _, etc.) in tables because most markdown parsers support inline formatting within table cells.