Skip to content

Commit

Permalink
[report] Fix report generation with html strings
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisJamesC committed Oct 13, 2023
1 parent bd14aac commit da1e929
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion monitoring/uss_qualifier/reports/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ def render(self):
# Configure application
rendered_configuration = json.dumps(
InjectedConfiguration(self._template.configuration, report=self._report)
)
).replace(
"</", "<\/"
) # Replace closing html tags in json strings
injected_configuration = f"""
<script id="interuss_report_json" type="application/json">
{rendered_configuration}
Expand Down

0 comments on commit da1e929

Please sign in to comment.