Open Yaneriaf opened 8 months ago
Do you actually need to sanitise the input? It would make more sense to encode the input to prevent accidentally removing (parts of) the input data. The following character can cause issues (I already added the for LaTeX encoded variant):
'"' => '{\\textacutedbl}',
'#' => '\\#',
'$' => '\\$',
'%' => '\\%',
'&' => '\\&',
'<' => '{\\textlangle}',
'>' => '{\\textrangle}',
'\' => '{\\textbackslash}',
'^' => '\\^{ }',
'_' => '\\_',
'{' => '\\{',
'}' => '\\}',
'~' => '{\\texttildelow}',
That would also work I suppose.
Items that have a % in their name are not sanitized, meaning that all columns after the name are commented out, resulting in missing numbers. Quite annoying for invoices.