public function render($view, array $data = null)
	{
		// Sanitize variables already in the template.
		foreach (get_object_vars($this) as $key => $value) {
			if (!in_array($key, $this->unguarded)) {
				$this->$key = $this->scrub($value);
			}
		}

		// Also sanitize any variables we are passing in to the template
		$data = $this->scrub($data);

		return parent::render($view, $data);
	}
public function render($view, array $data = null)
	{
		// Sanitize variables already in the template.
		foreach (get_object_vars($this) as $key => $value) {
			if (!in_array($key, $this->unguarded)) {
				$this->$key = $this->scrub($value);
			}
		}

		// Also sanitize any variables we are passing in to the template
		$data = $this->scrub($data);

		return parent::render($view, $data);
	}
public function render ( $ view , array $ data = null ) { // Sanitize variables already in the template. foreach ( get_object_vars ( $ this ) as $ key => $ value ) { if ( ! in_array ( $ key , $ this -> unguarded ) ) { $ this -> $ key = $ this -> scrub ( $ value ) ; } } // Also sanitize any variables we are passing in to the template $ data = $ this -> scrub ( $ data ) ; return parent :: render ( $ view , $ data ) ; }
Return our compiled view.
Sanitize the data before rendering.

@param string $view
@param array $data
@return string
Return our compiled view . Sanitize the data before rendering .