parent
25dbf0c1ad
commit
9961b92913
@ -26,7 +26,7 @@
|
||||
</article>
|
||||
{% endif %}
|
||||
|
||||
<p>{{ event.description |linebreaks | urlize }}</p>
|
||||
<p>{{ event.description |linebreaks | robust_urlize }}</p>
|
||||
|
||||
<footer class="infos-and-buttons">
|
||||
<div class="infos">
|
||||
|
@ -135,3 +135,7 @@ def add_url_category(url, c):
|
||||
return "category=" + str(c.pk)
|
||||
else:
|
||||
return url + "&category=" + str(c.pk)
|
||||
|
||||
@register.filter
|
||||
def robust_urlize(txt):
|
||||
return mark_safe(urlize(mark_safe(txt.replace("http", " http"))).replace(" <a ", "<a "))
|
||||
|
Loading…
x
Reference in New Issue
Block a user