I have a solution that uses asp.net web api to convert data to pdf. I am using @Raw to display the data in a html formatted manner. But the problem is that if the json string contains the html <br> it throws an error. Once I change it manually to XHTML <br/> it works fine. Why can't @Raw handle html breaks
? Is there a better way to handle html tags?

Description @Raw(@Model.Description)

Related posts

Recent Viewed