HTML entities in URLs and urlencoding

Milian Wolff mail at milianw.de
Mon Mar 31 21:53:12 EDT 2008


Am Dienstag, 1. April 2008 schrieb Waylan Limberg:

> We recently received the following bug report for the python-markdown

>

> implementation:

> > The "&" are escaped in URLs.

> >

> > An example:

> > [Link](http://www.site.com/?param1=value1&param2=value1)

> >

> > Should output:

> > <a href="http://www.site.com/?param1=value1&param2=value1">Link</a>


No it shouldn't. This is invalid (x)HTML.


> > Currently outputs:

> > <a

> > href="http://www.site.com/?param1=value1&amp;param2=value1">Link</a>


Which is valid (x)HTML!


> > So the "&" must not be escaped!


It must! See also <http://htmlhelp.com/tools/validator/problems.html#amp>



--
Milian Wolff
http://milianw.de
OpenPGP key: CD1D1393
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : <http://six.pairlist.net/pipermail/markdown-discuss/attachments/20080401/8820cc04/attachment.pgp>


More information about the Markdown-Discuss mailing list