Sorry but only have a basic understanding of encoding.
I am running w3c validator of one of my pages, one of the errors is this -
reference to external entity in attribute value
This is generally the sign of an ampersand that was not properly escaped for inclusion in an attribute, in a href for example. You will need to escape all instances of '&' into '&'.
* Line 528, column 489: reference to external entity in attribute value
So I assume I need to start urlencoding (especially the & ampersands) my (3rd party supplied) URLs for href/src etc in my html?
I have tried
(example src link is http://s7v1.scene7.com/is/image/Littlewoods/A912_SP333_02_UA483?fmt=jpeg&qlt=90&wid=245&hei=410
HttpUtility.UrlPathEncode - but this does not touch the &'s
HttpUtility.UrlEncode - but this messes up the http://
by encoding that also
Can I just urlencode everything after the http://?
is there a built in function for this.
Have I understood this? You must always URLENCODE your url paths in an XHTML html document.