twig_raw_filter

Marks a variable as being safe.

Description

(string) twig_raw_filter( (string) $string ); 

Returns (string)

Parameters (1)

0. $string (string)
A PHP variable

Usage

  1. if ( !function_exists( 'twig_raw_filter' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-multilingual/vendor/twig/twig/lib/Twig/Extension/Escaper.php'; 
  3.  
  4. // A PHP variable 
  5. $string = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = twig_raw_filter($string); 
  9.  

Defined (1)

The function is defined in the following location(s).

/vendor/twig/twig/lib/Twig/Extension/Escaper.php  
  1. function twig_raw_filter($string) 
  2. return $string;