Studyon Minte9.com
ZF 1.0




View



* escape()

By default, the escape() method uses the PHP htmlspecialchars() function for escaping.
Use the setEscape() method at the controller level to tell Zend_View what escaping callback to use. 

	<?php // -- view --

		//bad view-script practice:
		echo $this->variable;
	     
		// good view-script practice:
		echo $this->escape($this->variable);

		// tell it to use htmlentities as the escaping callback
		$view->setEscape('htmlentities');





http://framework.zend.com/manual/1.12/en/zend.view.scripts.html