mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-05-27 19:39:02 +00:00
Convert all links to hyperlinks #69
This commit is contained in:
@@ -139,7 +139,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
{% if msg.media == false %}
|
{% if msg.media == false %}
|
||||||
{{ msg.data | sanitize_except() }}
|
{{ msg.data | sanitize_except() | urlize(none, true, '_blank') }}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% if "image/" in msg.mime %}
|
{% if "image/" in msg.mime %}
|
||||||
<a href="{{ msg.data }}">
|
<a href="{{ msg.data }}">
|
||||||
@@ -162,7 +162,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if msg.caption is not none %}
|
{% if msg.caption is not none %}
|
||||||
<br>
|
<br>
|
||||||
{{ msg.caption }}
|
{{ msg.caption | urlize(none, true, '_blank') }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -223,7 +223,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
{% if msg.media == false %}
|
{% if msg.media == false %}
|
||||||
{{ msg.data | sanitize_except() }}
|
{{ msg.data | sanitize_except() | urlize(none, true, '_blank') }}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% if "image/" in msg.mime %}
|
{% if "image/" in msg.mime %}
|
||||||
<a href="{{ msg.data }}">
|
<a href="{{ msg.data }}">
|
||||||
@@ -246,7 +246,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if msg.caption is not none %}
|
{% if msg.caption is not none %}
|
||||||
<br>
|
<br>
|
||||||
{{ msg.caption }}
|
{{ msg.caption | urlize(none, true, '_blank') }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user