Extend Zend_View_Stream to easily escape view variables
Zend_View_Stream is used pretty much when ever you use Zend_View, and I’ve blogged about how handy it is before. But as it’s a class like any other, you can extend it to give added functionality. One such use is to add automatic escaping to your view variables when you want. So instead of doing: [code lang=”php”] <?php echo $this->escape($this->var); ?>...