| 1 |
<?php |
| 2 |
|
| 3 |
namespace ElementorDeps; |
| 4 |
|
| 5 |
/* |
| 6 |
* This file is part of Twig. |
| 7 |
* |
| 8 |
* (c) Fabien Potencier |
| 9 |
* |
| 10 |
* For the full copyright and license information, please view the LICENSE |
| 11 |
* file that was distributed with this source code. |
| 12 |
*/ |
| 13 |
use ElementorDeps\Twig\Environment; |
| 14 |
use ElementorDeps\Twig\Extension\EscaperExtension; |
| 15 |
use ElementorDeps\Twig\Node\Node; |
| 16 |
use ElementorDeps\Twig\Runtime\EscaperRuntime; |
| 17 |
/** |
| 18 |
* @internal |
| 19 |
* |
| 20 |
* @deprecated since Twig 3.9 |
| 21 |
*/ |
| 22 |
function twig_raw_filter($string) |
| 23 |
{ |
| 24 |
trigger_deprecation('twig/twig', '3.9', 'Using the internal "%s" function is deprecated.', __FUNCTION__); |
| 25 |
return $string; |
| 26 |
} |
| 27 |
/** |
| 28 |
* @internal |
| 29 |
* |
| 30 |
* @deprecated since Twig 3.9 |
| 31 |
*/ |
| 32 |
function twig_escape_filter(Environment $env, $string, $strategy = 'html', $charset = null, $autoescape = \false) |
| 33 |
{ |
| 34 |
trigger_deprecation('twig/twig', '3.9', 'Using the internal "%s" function is deprecated.', __FUNCTION__); |
| 35 |
return $env->getRuntime(EscaperRuntime::class)->escape($string, $strategy, $charset, $autoescape); |
| 36 |
} |
| 37 |
/** |
| 38 |
* @internal |
| 39 |
* |
| 40 |
* @deprecated since Twig 3.9 |
| 41 |
*/ |
| 42 |
function twig_escape_filter_is_safe(Node $filterArgs) |
| 43 |
{ |
| 44 |
trigger_deprecation('twig/twig', '3.9', 'Using the internal "%s" function is deprecated.', __FUNCTION__); |
| 45 |
return EscaperExtension::escapeFilterIsSafe($filterArgs); |
| 46 |
} |
| 47 |
|