model-checking / cbmc-viewer

CBMC Viewer scans the output of CBMC and produces a browsable summary of its findings, making it easy to root cause the issues it finds.
https://model-checking.github.io/cbmc-viewer/
Apache License 2.0
32 stars 11 forks source link

Uniformly escape text used in html markup #43

Open markrtuttle opened 3 years ago

markrtuttle commented 3 years ago

The functions link_text_to_file and link_text_to_line should take an option "escape=True" argument and invoke html.escape on the text strings when escape is true.

The invocation of html.escape in format_srcloc should be removed.