grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026transliterate($str); // Trim white spaces at beginning and end of alias and make lowercase $str = trim(StringHelper::strtolower($str)); // Remove any duplicate whitespace, and ensure all characters are alphanumeric $str = preg_replace('/(\s|[^A-Za-z0-9\-])+/', '-', $str); // Trim dashes at beginning and end of alias $str = trim($str, '-'); return $str; } /** * Callback method for replacing & with & in a string * * @param string $m String to process * * @return string Replaced string * * @since 3.5 */ public static function ampReplaceCallback($m) { $rx = '&(?!amp;)'; return preg_replace('#' . $rx . '#', '&', $m[0]); } /** * Callback method for replacing & with & in a string * * @param string $m String to process * * @return string Replaced string * * @since 1.7.0 * @deprecated 4.0 Use OutputFilter::ampReplaceCallback() instead */ public static function _ampReplaceCallback($m) { return static::ampReplaceCallback($m); } }