I'm using razor mvc and I want to build up an html string so that I can display it within a div, in php it would look like this:
$htmlstring = '';
foreach ($item as $items)
{
$htmlstring .= '<p>'.$item.'</p>';
}
<div>
<? echo $htmlstring; ?>
</div>
How would I do the equivalent in razor mvc?