Hi folks,
I have constructed a simple string outputed as HTML. The resulting html is then read by a soap tool by the customer. They say the string is not a valid HTML (or xml). It's simple as string using String class in C#:
string sLink =
www.mycompany.com;
var="<a href='" + sLink + "'> Click this link </a>" ;
The resulting output is:
<a href='www.mycompany.com'> Click this link </a>
Just puzzled why the lessthan char was converted to < and yet the greaterthan char is left as is?
If I do this:
var="<a href='" + sLink + "' > Click this link </a>";
Is this valid eventhough in my test tool this string shows as:
&lt;a href='" + sLink + "' &gt; Click this link &lt;/a&gt;";
Thanks