File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
cve_bin_tool/output_engine Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,10 @@ def output_html(
64
64
65
65
# Template Directory contains all the html files
66
66
templates_dir = os .path .join (root , "html_reports" )
67
- templates_env = Environment (loader = FileSystemLoader ([theme_dir , templates_dir ]))
67
+ templates_env = Environment (
68
+ loader = FileSystemLoader ([theme_dir , templates_dir ]),
69
+ autoescape = select_autoescape (["html" ]),
70
+ )
68
71
69
72
temp_base = "templates/base.html"
70
73
temp_dash = "templates/dashboard.html"
Original file line number Diff line number Diff line change @@ -17,7 +17,10 @@ def html_print_mode(
17
17
18
18
root = os .path .dirname (os .path .abspath (__file__ ))
19
19
templates_dir = os .path .join (root , "print_mode" )
20
- templates_env = Environment (loader = FileSystemLoader (templates_dir ))
20
+ templates_env = Environment (
21
+ loader = FileSystemLoader (templates_dir ),
22
+ autoescape = select_autoescape (["html" ]),
23
+ )
21
24
22
25
temp_showcase = "templates/showcase.html"
23
26
temp_content = "templates/content.html"
You can’t perform that action at this time.
0 commit comments