You are here

function _aggregator_allowed_tags in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/aggregator/aggregator.module \_aggregator_allowed_tags()

Gets the list of allowed tags.

@internal

Return value

array The list of allowed tags.

4 calls to _aggregator_allowed_tags()
AggregatorXSSFormatter::viewElements in core/modules/aggregator/src/Plugin/Field/FieldFormatter/AggregatorXSSFormatter.php
Builds a renderable array for a field value.
FeedViewBuilder::buildComponents in core/modules/aggregator/src/FeedViewBuilder.php
Builds the component fields and properties of a set of entities.
IntegrationTest::testAggregatorItemView in core/modules/aggregator/tests/src/Kernel/Views/IntegrationTest.php
Tests basic aggregator_item view.
ItemViewBuilder::buildComponents in core/modules/aggregator/src/ItemViewBuilder.php
Builds the component fields and properties of a set of entities.

File

core/modules/aggregator/aggregator.module, line 195
Used to aggregate syndicated content (RSS, RDF, and Atom).

Code

function _aggregator_allowed_tags() {
  return preg_split('/\\s+|<|>/', \Drupal::config('aggregator.settings')
    ->get('items.allowed_html'), -1, PREG_SPLIT_NO_EMPTY);
}