Fakultas Ilmu Komputer UI

Commit 1fdbaeb0 authored by Azhar Rais's avatar Azhar Rais
Browse files

[REFACTOR] Make Discussion and Comment descriptions escaped to show html tag

parent ec61512b
Pipeline #59991 passed with stages
in 28 minutes and 3 seconds
......@@ -8,8 +8,19 @@
<div class="container">
{% if object.user == request.user %}
<form method="post">{% csrf_token %}
<p>Are you sure you want to delete
"{% if object.title %}{{ object.title }}{% else %}{{ object.description }}{% endif %}"?</p>
<p>Are you sure you want to delete</p>
{% if object.title %}
<p>{{ object.title }}?</p>
{% else %}
<div>
<div class="card">
<div class="card-body">
{{ object.description|safe }}
</div>
</div>
?
</div>
{% endif %}
<button type="submit" class="btn btn-danger">Submit</button>
</form>
{% else %}
......
......@@ -43,7 +43,7 @@
{% endfor %}
</div>
<p>{{ object.description }}</p>
<div>{{ object.description|safe }}</div>
</div>
</div>
<div class="col-md-2">
......@@ -86,7 +86,7 @@
</div>
{% endfor %}
</div>
<p>{{ comment.description }}</p>
<div>{{ comment.description|safe }}</div>
</div>
</div>
<div class="col-md-2">
......
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