urlize does not escape url correctly
urlize leaves unencoded characters in href attributes. In particular, & must be escaped as & for valid XHTML. I believe unescaped '&'s are also invalid in HTML but HTML parsers are forgiving about this.
From the regression tests, http://example.com/x=&y= is converted to <a href="http://example.com/x=&y=" rel="nofollow">http://example.com/x=&y=</a>.
It should be converted to <a href="http://example.com/x=&y=" rel="nofollow">http://example.com/x=&y=</a>.
Change History
(9)
| Summary: |
urlize does not escape & characters → urlize does not escape url correctly
|
| Triage Stage: |
Unreviewed → Accepted
|
| Patch needs improvement: |
set
|
| Patch needs improvement: |
unset
|
| Triage Stage: |
Accepted → Ready for checkin
|
| Resolution: |
→ fixed
|
| Status: |
new → closed
|
Escapes all ampersands.