Skip to content

Commit

Permalink
Convert all links to hyperlinks #69
Browse files Browse the repository at this point in the history
  • Loading branch information
KnugiHK committed Oct 23, 2023
1 parent fc50415 commit 3082c83
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Whatsapp_Chat_Exporter/whatsapp.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
</div>
{% else %}
{% if msg.media == false %}
{{ msg.data | sanitize_except() }}
{{ msg.data | sanitize_except() | urlize(none, true, '_blank') }}
{% else %}
{% if "image/" in msg.mime %}
<a href="{{ msg.data }}">
Expand All @@ -162,7 +162,7 @@
{% endif %}
{% if msg.caption is not none %}
<br>
{{ msg.caption }}
{{ msg.caption | urlize(none, true, '_blank') }}
{% endif %}
{% endif %}
{% endif %}
Expand Down Expand Up @@ -223,7 +223,7 @@
</div>
{% else %}
{% if msg.media == false %}
{{ msg.data | sanitize_except() }}
{{ msg.data | sanitize_except() | urlize(none, true, '_blank') }}
{% else %}
{% if "image/" in msg.mime %}
<a href="{{ msg.data }}">
Expand All @@ -246,7 +246,7 @@
{% endif %}
{% if msg.caption is not none %}
<br>
{{ msg.caption }}
{{ msg.caption | urlize(none, true, '_blank') }}
{% endif %}
{% endif %}
{% endif %}
Expand Down

1 comment on commit 3082c83

@Box333
Copy link

@Box333 Box333 commented on 3082c83 Oct 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great !

Please sign in to comment.