function Xss::render

Render the field.

Parameters

$values: The values retrieved from the database.

Overrides FieldPluginBase::render

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/field/Xss.php, line 22
Definition of Drupal\views\Plugin\views\field\Xss

Class

Xss
A handler to run a field through simple XSS filtering.

Namespace

Drupal\views\Plugin\views\field

Code

function render($values) {
  $value = $this
    ->getValue($values);
  return $this
    ->sanitizeValue($value, 'xss');
}