I am trying to display content such as
<p>Text and link - @Html.ActionLink("Link", "Action")</p>
from a database, but if I use @Html.Raw
then it doesn't render the link.
Is there anyway to do this?
You will need to use a Razor parser in order to achieve that. Checkout RazorEngine
which could be used render the Razor markup to HTML.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With