how can i show html tags like this
html.actionlinlk("<b>bla bla</b>", null)
it dislay bla bla not bold bla bla-is it possible to show bold text?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I strongly agree with Darin Dimitrov. You should not store html in your db. But you can solve this problem anyway. Ether you use Url.Action and write the
<a />tag your self. Like this:Or you will have to build your own html extension for actionlink as the default one (correctly) html encodes the value you put in.
I would suggest the first one as I think you should write the html your self instead of using a helper. It’s not hard to write a
<a />tag.