Meh. With short tags, and a helper function which can be abstracted away in your stack, you can write the following:
<? foreach($row in $results): ?>
<div><?= $row['field'] ?></div>
<? endforeach ?>
(Assume the helper function maps htmlspecialchars over an array returned by PDO::FETCH_ASSOC.)