0

I currently have an .net Mvc web project that displays comments that are submitted by users and are stored in a database.

I was wondering if anyone had any information on how to embed a link in the comment so that is can be clicked on and followed to the desired well link :)

I am aware that I can google this however with the language in this given question finding an answer on google has been quite basic and not too accurate.

1
  • have you checkout tinymce.com Commented Nov 13, 2013 at 1:13

1 Answer 1

1

Well you can store the comments as html in the database then display it using Html.Raw but that opens up many security flaws. The best option is to setup some custom tag to represent a link such as [url link="example.com]click here[/url] and then using a razor helper parse that and transform it into a html link.

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

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.