Opened 4 years ago
Closed 4 years ago
#32866 closed Bug (fixed)
urlize() does not handle html escaped string and trailing punctuation correctly
| Reported by: | Shipeng Feng | Owned by: | Shipeng Feng |
|---|---|---|---|
| Component: | Utilities | Version: | dev |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | yes | UI/UX: | no |
Description
Example:
urlize('Search for google.com/?q=1<! and see.') # expected output 'Search for <a href="http://google.com/?q=1%3C">google.com/?q=1<</a>! and see.' # actual output 'Search for <a href="http://google.com/?q=1%3C">google.com/?q=1<</a>lt! and see.'
Change History (5)
comment:1 by , 4 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:2 by , 4 years ago
| Has patch: | set |
|---|
comment:3 by , 4 years ago
| Summary: | urlize does not handle html escaped string correctly → urlize() does not handle html escaped string and trailing punctuation correctly |
|---|
comment:4 by , 4 years ago
| Triage Stage: | Unreviewed → Accepted |
|---|
OK, thanks, the example looks right. It's always delicate but let's take this for review.
Related to #26193.
Note:
See TracTickets
for help on using tickets.
https://github.com/django/django/pull/14539/