Store that, woops
This commit is contained in:
parent
db5534f437
commit
f234bafb5c
@ -13,7 +13,7 @@ def _href_wrap(post):
|
||||
"""Wrap links in a tags as a Jinja template filter."""
|
||||
for url in re.findall(r"http\S+", post):
|
||||
url_with_href = f"<a href='{url}'>{url}</a>"
|
||||
post.replace(url, url_with_href)
|
||||
post = post.replace(url, url_with_href)
|
||||
return post
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user