* @package tao */ class tao_helpers_form_elements_xhtml_Htmlarea extends tao_helpers_form_elements_Htmlarea { use XhtmlRenderingTrait; /** * Short description of attribute CSS_CLASS * * @access public * @var string */ const CSS_CLASS = 'html-area'; /** * Short description of method render * * @access public * @author Bertrand Chevrier, * @return string */ public function render() { if (array_key_exists('class', $this->attributes)) { if (strstr($this->attributes['class'], self::CSS_CLASS) !== false) { $this->attributes['class'] .= ' ' . self::CSS_CLASS; } } else { $this->attributes['class'] = self::CSS_CLASS; } $returnValue = $this->renderLabel(); $returnValue .= ""; return (string) $returnValue; } /** * Get the HtmlArea value, XSS sanitized * @return string the sanitized value */ public function getEvaluatedValue() { return tao_helpers_Display::sanitizeXssHtml($this->getRawValue()); } }