Commit ec95eec0 authored by Zixian Cai's avatar Zixian Cai

Escape HTML tags

parent b3aa8732
......@@ -21,7 +21,12 @@
<div class="panel-heading">Platform information</div>
<div class="panel-body">
<ul>
<li>CPU: {{ result["cpu"]|replace("\n", "<br/>") }}</li>
<li>CPU:<br/>
{% for l in result["cpu"].split("\n") %}
{{ l }}
<br/>
{% endfor %}
</li>
<li>uname: {{ result["uname"] }}</li>
<li>Hostname: {{ result["hostname"] }}</li>
</ul>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment