public function toString() { $output = ''; foreach ($this as $item) { $output .= $item; } $output = $this->_autoEscape ? $this->_escape($output) : $output; return sprintf($this->_scriptFormat, $output); }