public static function FilterExtension::plainText in Thunder 8.2
Same name and namespace in other branches
- 8.5 modules/thunder_article/src/Twig/FilterExtension.php \Drupal\thunder_article\Twig\FilterExtension::plainText()
- 8.3 modules/thunder_article/src/Twig/FilterExtension.php \Drupal\thunder_article\Twig\FilterExtension::plainText()
- 8.4 modules/thunder_article/src/Twig/FilterExtension.php \Drupal\thunder_article\Twig\FilterExtension::plainText()
- 6.2.x modules/thunder_article/src/Twig/FilterExtension.php \Drupal\thunder_article\Twig\FilterExtension::plainText()
- 6.0.x modules/thunder_article/src/Twig/FilterExtension.php \Drupal\thunder_article\Twig\FilterExtension::plainText()
- 6.1.x modules/thunder_article/src/Twig/FilterExtension.php \Drupal\thunder_article\Twig\FilterExtension::plainText()
Plains a text. Strips everything evil out.
Parameters
string $value: The content to be processed.
Return value
string The processed content.
File
- modules/
thunder_article/ src/ Twig/ FilterExtension.php, line 42
Class
- FilterExtension
- Introduce some twig filters.
Namespace
Drupal\thunder_article\TwigCode
public static function plainText($value) {
$element = render($value);
$element = strip_tags($element);
$element = html_entity_decode($element, ENT_QUOTES);
return $element;
}