0

I am using TFS API and I try am trying to access a property "Description" of an object "WorkItem" I want to display this property on a web page.

When I display this on the web page , this is what I see :

<p>This task is created for our SSRS team&#160;Sesame project.</p> 

Firstly , I wanted to know if this is a html tag or does it mean something else in TFS . And secondly , is there a way I can display this in plain text ?

 This task is created for our SSRS team Sesame project.

Please let me know.

2 Answers 2

0

If you just want to remove tags, see this simple solution (it uses Regular Expressions): Remove HTML tags in String

It could be even better if you create it as a extension method.

Sign up to request clarification or add additional context in comments.

Comments

0

This is HTML as the System.Description field is an HTML one.

If you just write the field out to a tag it should render as text without the tags. The browser hosting the webpage will render them like any other HTML tags.

2 Comments

I am using MVC & I used Server.HtmlDecode on the description item in my controller. I still see that the <p> tags rendered on my html page . Would you have any code samples for this ?
I am still new to mvc4 . I have posted my code here.. Can you please have a look : stackoverflow.com/questions/26998510/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.