UNPKG

sanitize-latex

Version:

A string sanitizer for LaTeX symbols.

9 lines (7 loc) 284 B
/** * Sanitizes a string by replacing all hazardous LaTeX symbols with their descriptive names. * * @param source The string to be sanitized. * @return A sanitized version of the string with LaTeX symbols normalized. */ export declare function sanitize(source: string): string;