You are here

function Xss::render in Views (for Drupal 7) 8.3

Same name in this branch
  1. 8.3 lib/Views/aggregator/Plugin/views/field/Xss.php \Views\aggregator\Plugin\views\field\Xss::render()
  2. 8.3 lib/Drupal/views/Plugin/views/field/Xss.php \Drupal\views\Plugin\views\field\Xss::render()

Render the field.

Parameters

$values: The values retrieved from the database.

Overrides FieldPluginBase::render

File

lib/Drupal/views/Plugin/views/field/Xss.php, line 24
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
    ->get_value($values);
  return $this
    ->sanitizeValue($value, 'xss');
}