/** * @deprecated Use displayTarea, instead * @todo Remove in version 1.4 - there are no other occurrences in the core * Enter description here ... * @param $text * @param $allowhtml * @param $smiley * @param $bbcode */ function sanitizeForPreview($text, $allowhtml = 0, $smiley = 1, $bbcode = 1) { icms_core_Debug::setDeprecated('icms_core_DataFilter->checkVar - type = text or html, options1 = input', sprintf(_CORE_REMOVE_IN_VERSION, '1.4')); $text = $this->oopsStripSlashesGPC($text); if ($allowhtml == 0) { $text = icms_core_DataFilter::htmlSpecialChars($text); } else { $text = icms_core_DataFilter::makeClickable($text); } if ($smiley == 1) { $text = icms_core_DataFilter::smiley($text); } if ($bbcode == 1) { $text = icms_core_DataFilter::codeDecode($text); } $text = icms_core_DataFilter::nl2Br($text); return $text; }