tests/testit/test-utils.md

escape_latex() sanitizes backslashes and {}

escape_latex('\\')
escape_latex('\\{}')
escape_latex('{\\}')
escape_latex('~!@#$%^&*()')
\textbackslash{}
\textbackslash{}\{\}
\{\textbackslash{}\}
~!@#$%^&*()

escape_html() escapes HTML chars

escape_html('&"<>')
escape_html('~!@#$%^&*()')
&amp;&quot;&lt;&gt;
~!@#$%^&amp;*()


Try the highr package in your browser

Any scripts or data that you put into this service are public.

highr documentation built on March 6, 2026, 9:09 a.m.