You are here

Xss.php in Views (for Drupal 7) 8.3

File

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

/**
 * @file
 * Definition of Views\aggregator\Plugin\views\field\Xss.
 */
namespace Views\aggregator\Plugin\views\field;

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

/**
 * Filters htmls tags from item.
 *
 * @ingroup views_field_handlers
 *
 * @Plugin(
 *   id = "aggregator_xss",
 *   module = "aggregator"
 * )
 */
class Xss extends FieldPluginBase {
  function render($values) {
    $value = $this
      ->get_value($values);
    return aggregator_filter_xss($value);
  }

}

Classes

Namesort descending Description
Xss Filters htmls tags from item.