If the sample data in a problem contains special characters that become HTML entities (e.g. < becomes <), then the cgi.escape() at https://github.com/Kattis/problemtools/blob/develop/problemtools/ProblemPlasTeX/ProblemsetMacros.py#L50 properly converts the text (<) to its HTML entity (<). However, at some later point in the conversion process, the < becomes &lt;, which is incorrect. I'm still tracing where this happens.
If the sample data in a problem contains special characters that become HTML entities (e.g.
<
becomes<
), then thecgi.escape()
at https://github.com/Kattis/problemtools/blob/develop/problemtools/ProblemPlasTeX/ProblemsetMacros.py#L50 properly converts the text (<
) to its HTML entity (<
). However, at some later point in the conversion process, the<
becomes&lt;
, which is incorrect. I'm still tracing where this happens.