Implementing newline to <br>

This commit is contained in:
KnugiHK
2021-07-11 18:17:06 +08:00
parent 27a6ff98b3
commit f91aac1e11
4 changed files with 39 additions and 5 deletions

View File

@@ -73,7 +73,7 @@
</div>
{% endif %}
{% if msg.media == false %}
{% filter escape %}{{ msg.data or "{This message is not supported yet}" | replace('\n', '<br>') }}{% endfilter %}
{{ msg.data or "{This message is not supported yet}" | sanitize_except() }}
{% else %}
{% if "image/" in msg.mime %}
<a href="{{ msg.data }}"><img src="{{ msg.data }}" /></a>
@@ -121,7 +121,7 @@
</div>
{% endif %}
{% if msg.media == false %}
{% filter escape %}{{ msg.data or "{This message is not supported yet}" }}{% endfilter %}
{{ msg.data or "{This message is not supported yet}" | sanitize_except() }}
{% else %}
{% if "image/" in msg.mime %}
<a href="{{ msg.data }}"><img src="{{ msg.data }}" /></a>