wp_iso_descrambler() – Convert to ASCII from email subjects.
You appear to be a bot. Output may be restricted
Description
Converts to ASCII from email subjects.
Usage
$string = wp_iso_descrambler( $string );
Parameters
- $string
- ( string ) required – Subject line.
Returns
string Converted string to ASCII.
Source
File name: wordpress/wp-includes/formatting.php
Lines:
1 to 9 of 9
function wp_iso_descrambler( $string ) { /* this may only work with iso-8859-1, I'm afraid */ if ( ! preg_match( '#\=\?(.+)\?Q\?(.+)\?\=#i', $string, $matches ) ) { return $string; } else { $subject = str_replace( '_', ' ', $matches[2] ); return preg_replace_callback( '#\=([0-9a-f]{2})#i', '_wp_iso_convert', $subject ); } }