The problem appears to be the space in your
Icon string, “fas fa-file”. The View when it renders is reading the space as its signal to close the quote. I have experienced this manually editing Views in the IDE. I have no definite solution, but a couple of things you might try.
First, try breaking up the string in your
foreach loop, like this:
<a><i class="@action.Icon.Split(' ') @action.Icon.Split(' ')"></i></a>
If that doesn’t work, you might try escaping the space in the original string, like this: