mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 15:22:17 +02:00
N°8579 - Update PHPDoc
This commit is contained in:
@@ -153,8 +153,12 @@ class Extension
|
|||||||
return twig_array_filter($oTwigEnv, $array, $arrow);
|
return twig_array_filter($oTwigEnv, $array, $arrow);
|
||||||
}, ['needs_environment' => true]);
|
}, ['needs_environment' => true]);
|
||||||
|
|
||||||
// @since 3.3.0 N°8579
|
/**
|
||||||
// Filter to remove spaces between HTML tags, overwrite the deprecated core "spaceless" filter
|
* Filter to remove spaces between HTML tags, overwrite the deprecated core "spaceless" filter
|
||||||
|
* Usage in twig: {% apply spaceless %}some html{% endapply %}
|
||||||
|
*
|
||||||
|
* @since 3.2.3 3.3.0 N°8579
|
||||||
|
*/
|
||||||
$aFilters[] = new TwigFilter('spaceless', function (?string $content) {
|
$aFilters[] = new TwigFilter('spaceless', function (?string $content) {
|
||||||
return trim(preg_replace('/>\s+</', '><', $content ?? ''));
|
return trim(preg_replace('/>\s+</', '><', $content ?? ''));
|
||||||
}, ['is_safe' => ['html']]);
|
}, ['is_safe' => ['html']]);
|
||||||
|
|||||||
Reference in New Issue
Block a user