I have a row in DB which contains a text which looks like the below
Will candidate handle Personally Identifiable Information (PII) as defined <a target ='_blank' href='http://intranet.hp.com/sites/privacyrulebook/Pages/Glossary.aspx'> here</a>?
i will read the same in asp.net MVC, C# and the same will be printed on the page.
MY requirement is the text should be displayed as a text and with an link which is also mentioned in the text. Please have a look at the anchor tag in the above DB Text.
some one please help
If you want “
here” to be a link, you can do this:@(new HtmlString(Model.TheTextFromDB))Where
Model.TextFromDBis your actual text. This will print your text and make “here” a link. If this is some arbitrary text that someone else put in there, you might not want to just show that without filtering it first.