31 lines
527 B
PHP
31 lines
527 B
PHP
<?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);
|
|
}
|
|
|
|
}
|