Not sure what type of attrs there are, but:
@foreach (var attrs in attr.attr_value) { @(attrs.ToString().Trim())//should work? }
If this is not the case, you can / must override toString() in your attrs type.
Note: @(..) prints a string in HTML format.
source share