From 3082c83bc44c41c715ff215ba5d988a9ab9d514f Mon Sep 17 00:00:00 2001 From: KnugiHK <24708955+KnugiHK@users.noreply.github.com> Date: Tue, 24 Oct 2023 00:16:49 +0800 Subject: [PATCH] Convert all links to hyperlinks #69 --- Whatsapp_Chat_Exporter/whatsapp.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Whatsapp_Chat_Exporter/whatsapp.html b/Whatsapp_Chat_Exporter/whatsapp.html index 6731aa1..72c9b6b 100644 --- a/Whatsapp_Chat_Exporter/whatsapp.html +++ b/Whatsapp_Chat_Exporter/whatsapp.html @@ -139,7 +139,7 @@ {% else %} {% if msg.media == false %} - {{ msg.data | sanitize_except() }} + {{ msg.data | sanitize_except() | urlize(none, true, '_blank') }} {% else %} {% if "image/" in msg.mime %} @@ -162,7 +162,7 @@ {% endif %} {% if msg.caption is not none %}
- {{ msg.caption }} + {{ msg.caption | urlize(none, true, '_blank') }} {% endif %} {% endif %} {% endif %} @@ -223,7 +223,7 @@ {% else %} {% if msg.media == false %} - {{ msg.data | sanitize_except() }} + {{ msg.data | sanitize_except() | urlize(none, true, '_blank') }} {% else %} {% if "image/" in msg.mime %}
@@ -246,7 +246,7 @@ {% endif %} {% if msg.caption is not none %}
- {{ msg.caption }} + {{ msg.caption | urlize(none, true, '_blank') }} {% endif %} {% endif %} {% endif %}