I am using HTML.Raw in a few detail views that I have - so that the text output shows with any carriage returns or spaces. However, sometimes someone may type in a Web Address in the middle of text. I have no idea where the Web Address will be in the text. How can I get it so that the Web Address will show as a hyperlink?
The only things I can find in a search is where the coder knows the position of the Web Address. Here is an example (plus it is very old). ASP.NET MVC3 link with image inside @Html.Raw
FYI, this is a help desk system for people to open tickets for their problems. Sometimes they may put in that they cannot access http://nameofwebsite.com or something similar.
Here is my code:
@Html.Raw(Model.Note.Replace(Environment.NewLine, "<br/>"))
"))` You can just style the element - `