src/Generator/Analyzer/AnalyzerContext.php
public function normalizeCmsAccents($string)
    {
        $string = htmlentities($string, ENT_COMPAT | (defined('ENT_HTML401') ? ENT_HTML401 : 0), 'ISO-8859-1');

        $string = preg_replace('#&([a-zA-Z])(uml|acute|grave|circ|tilde|slash|cedil|ring|caron);#','$1',$string);

        $string = preg_replace('#&(ae|AE)lig;#','$1',$string);  // æ to ae
        $string = preg_replace('#&(oe|OE)lig;#','$1',$string);  // Œ to OE
        $string = preg_replace('#&szlig;#','ss',$string);       // ß to ss
        $string = preg_replace('#&(eth|thorn);#','th',$string); // ð and þ to th
        $string = preg_replace('#&(ETH|THORN);#','Th',$string); // Ð and Þ to Th

        return html_entity_decode($string);
    }
public function normalizeCmsAccents($string)
    {
        $string = htmlentities($string, ENT_COMPAT | (defined('ENT_HTML401') ? ENT_HTML401 : 0), 'ISO-8859-1');

        $string = preg_replace('#&([a-zA-Z])(uml|acute|grave|circ|tilde|slash|cedil|ring|caron);#','$1',$string);

        $string = preg_replace('#&(ae|AE)lig;#','$1',$string);  // æ to ae
        $string = preg_replace('#&(oe|OE)lig;#','$1',$string);  // Œ to OE
        $string = preg_replace('#&szlig;#','ss',$string);       // ß to ss
        $string = preg_replace('#&(eth|thorn);#','th',$string); // ð and þ to th
        $string = preg_replace('#&(ETH|THORN);#','Th',$string); // Ð and Þ to Th

        return html_entity_decode($string);
    }
public function normalizeCmsAccents ( $ string ) { $ string = htmlentities ( $ string , ENT_COMPAT | ( defined ( 'ENT_HTML401' ) ? ENT_HTML401 : 0 ) , 'ISO-8859-1' ) ; $ string = preg_replace ( '#&([a-zA-Z])(uml|acute|grave|circ|tilde|slash|cedil|ring|caron);#' , '$1' , $ string ) ; $ string = preg_replace ( '#&(ae|AE)lig;#' , '$1' , $ string ) ; // æ to ae $ string = preg_replace ( '#&(oe|OE)lig;#' , '$1' , $ string ) ; // Œ to OE $ string = preg_replace ( '#&szlig;#' , 'ss' , $ string ) ; // ß to ss $ string = preg_replace ( '#&(eth|thorn);#' , 'th' , $ string ) ; // ð and þ to th $ string = preg_replace ( '#&(ETH|THORN);#' , 'Th' , $ string ) ; // Ð and Þ to Th return html_entity_decode ( $ string ) ; }
Normalize accents just like the CMS does

@param string $string
@return string
Normalize accents just like the CMS does