You are here

Xss.php in Views (for Drupal 7) 8.3

File

lib/Drupal/views/Plugin/views/field/Xss.php
View source
<?php

/**
 * @file
 * Definition of Drupal\views\Plugin\views\field\Xss
 */
namespace Drupal\views\Plugin\views\field;

use Drupal\views\Plugin\views\field\FieldPluginBase;
use Drupal\Core\Annotation\Plugin;

/**
 * A handler to run a field through simple XSS filtering.
 *
 * @ingroup views_field_handlers
 *
 * @Plugin(
 *   id = "xss"
 * )
 */
class Xss extends FieldPluginBase {
  function render($values) {
    $value = $this
      ->get_value($values);
    return $this
      ->sanitizeValue($value, 'xss');
  }

}

Classes

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