Xss.php in Views (for Drupal 7) 8.3
Same filename in this branch
Definition of Drupal\views\Plugin\views\field\Xss
Namespace
Drupal\views\Plugin\views\fieldFile
lib/Drupal/views/Plugin/views/field/Xss.phpView 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');
}
}