attrs = array_merge(array('cols' => '40', 'rows' => '10'), $attrs); } /** * Renders the HTML of the input. * * @param string Name of the field. * @param mixed Value for the field, can be a non valid value. * @param array Extra attributes to add to the input form (array()) * @return string The HTML string of the input. */ public function render($name, $value, $extra_attrs=array()) { if ($value === null) $value = ''; $final_attrs = $this->buildAttrs(array('name' => $name), $extra_attrs); return new Pluf_Template_SafeString( sprintf('%s', Pluf_Form_Widget_Attrs($final_attrs), htmlspecialchars($value, ENT_COMPAT, 'UTF-8')), true); } }