mirror of
https://github.com/python/cpython.git
synced 2025-10-15 11:22:18 +00:00
Quote href properly.
This commit is contained in:
parent
9d79990ac7
commit
cddc1a0249
1 changed files with 2 additions and 1 deletions
|
@ -450,7 +450,8 @@ TT { font-family: lucidatypewriter, lucida console, courier }
|
||||||
|
|
||||||
all, scheme, rfc, pep, selfdot, name = match.groups()
|
all, scheme, rfc, pep, selfdot, name = match.groups()
|
||||||
if scheme:
|
if scheme:
|
||||||
results.append('<a href="%s">%s</a>' % (all, escape(all)))
|
url = escape(all).replace('"', '"')
|
||||||
|
results.append('<a href="%s">%s</a>' % (url, url))
|
||||||
elif rfc:
|
elif rfc:
|
||||||
url = 'http://www.rfc-editor.org/rfc/rfc%d.txt' % int(rfc)
|
url = 'http://www.rfc-editor.org/rfc/rfc%d.txt' % int(rfc)
|
||||||
results.append('<a href="%s">%s</a>' % (url, escape(all)))
|
results.append('<a href="%s">%s</a>' % (url, escape(all)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue