encoding - Necessary to encode characters in HTML links? -


should encoding characters contained within url?

example:

<a href="http://google.com?topicid=1&pageid=1">some link using &</a> 

or

<a href="http://google.com?topicid=1&amp;pageid=1">some link using &amp;</a> 

yes.

in html (including xhtml , html5, far know), attribute values , tag content should encoded:

authors should use "&amp;" in attribute values since character references allowed within cdata attribute values.


Comments

Popular posts from this blog

SAP Web Service from .NET via WCF -

Optimized Line drawing in QT -

datetime - str to time in python -