$value) { $this->addElement($key, $value); } return $this; } /** * * add single element to elements array * * @param string $key * @param string $value * * @return $this */ public function addElement($key, $value) { $this->_elements[$key] = $this->_formatString($value); return $this; } /** * * get elements array * * @return array */ public function getElements() { return $this->_elements; } /** * * clear elements array * * @return $this */ public function clearElements() { $this->_elements = array(); return $this; } /** * * format string * * @param string $string * * @return string */ protected function _formatString($string) { return strip_tags( str_ireplace( array('&'), array('&'), $string)); } }