You are here

public function ViewsConditionalHandler::clean_var in Views Conditional 7

Cleans a variable for handling later.

1 call to ViewsConditionalHandler::clean_var()
ViewsConditionalHandler::render in includes/views/handlers/views_conditional_handler.inc
Renders the final output based on conditional input.

File

includes/views/handlers/views_conditional_handler.inc, line 191
Handles conditionals in Views. IF xxx THEN yyy...

Class

ViewsConditionalHandler
@file Handles conditionals in Views. IF xxx THEN yyy...

Code

public function clean_var($var) {
  $unparsed = isset($var->last_render) ? $var->last_render : '';
  return $this->options['strip_tags'] ? trim(strip_tags($unparsed)) : trim($unparsed);
}