If have some HTML which is stored in the Database. I am rendering the HTML using the below code in my view File.
@Html.Raw(Model.Content.ToString())
This is working fine except one problem, the image paths are not getting rendered properly. In my HTML(which is stored in the database) the image is defined as:
<img src="~/images/logo.png" />
But while is is rendered in the HTML it is attaching the URL of the website before the path due to which the images are not being displayed.
http://www.hostname.com/~/images/logo.png
Please comment in case any other information is required. Thanks for your time.