J
John A Grandy
I am using a StringBuilder to build a link tag (based on categoryId and
categoryName , which are populated elsewhere ) :
StringBuilder sb = new StringBuilder();
sb.Append("<a href=\"http://www.mywebsite.com/mypage.aspx?category=");
sb.Append(categoryId);
sb.Append("&filter=price\">");
sb.Append(categoryName);
sb.Append("</a>");
html += sb.ToString();
Does the embedded "&" character need special handling? Should I replace "&"
with "&" ? Or some other encoding ?
categoryName , which are populated elsewhere ) :
StringBuilder sb = new StringBuilder();
sb.Append("<a href=\"http://www.mywebsite.com/mypage.aspx?category=");
sb.Append(categoryId);
sb.Append("&filter=price\">");
sb.Append(categoryName);
sb.Append("</a>");
html += sb.ToString();
Does the embedded "&" character need special handling? Should I replace "&"
with "&" ? Or some other encoding ?


