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

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -