TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Gee Batol
NA
9
14.4k
Creating a valid HTML for XML reader using C#
Apr 15 2012 6:55 PM
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
Reply
Answers (
1
)
Oracle sql statement parameters errors in c#
Simple Inventory using C# and MySql with Editable Grid