-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make external rich_text links target blank
- Loading branch information
1 parent
1727bcc
commit 27e68cc
Showing
2 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from ephios.extra.templatetags.rich_text import rich_text | ||
|
||
|
||
def test_rich_text(): | ||
assert ( | ||
rich_text("https://xkcd.com") | ||
== '<p><a href="https://xkcd.com" rel="noopener" target="_blank">https://xkcd.com</a></p>' | ||
) |