FileExtensionEscapingStrategy
    
            
            in package
            
        
    
    
    
        
            Default autoescaping strategy based on file names.
This strategy sets the HTML as the default autoescaping strategy, but changes it based on the template name.
Note that there is no runtime performance impact as the default autoescaping strategy is set at compilation time.
Tags
Table of Contents
- guess() : string|false
 - Guesses the best autoescaping strategy based on the file name.
 
Methods
guess()
Guesses the best autoescaping strategy based on the file name.
    public
            static    guess(string $name) : string|false
    
        Parameters
- $name : string
 - 
                    
The template name
 
Return values
string|false —The escaping strategy name to use or false to disable