I am outputting data to a table like the following:
foreach (var attr in item.attr_type)
{
<td>
@foreach (var attrs in attr.attr_value)
{
@attrs
}
</td>
}
If there a trim function i can put around @attrs because alot of white space is created
Not sure what type
attrsis, but:If it doesn’t, you can/should, override
toString()in your attrs type.Note:
@(..)does output an HTML-encoded string.