doc .= $doc; // FIXME this probably does not work for all renderers return true; } /** * Clean line endings * * @param int|string $value * @return int|string */ public function validate($value) { $value = parent::validate($value); $value = cleanText($value); return $value; } /** * Use a text area for input * * @param string $name * @param string $value * @param bool $isRaw ignored * @return string */ public function valueEditor($name, $value, $isRaw = false) { $class = 'struct_'.strtolower($this->getClass()); $name = hsc($name); $value = formText($value); $html = ""; return "$html"; } }