wp_iso_descrambler( string $string )

Convert to ASCII from email subjects.


Description Description


Parameters Parameters

$string

(string) (Required) Subject line


Top ↑

Return Return

(string) Converted string to ASCII


Top ↑

Source Source

File: wp-includes/formatting.php

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 );
	}
}

Top ↑

Changelog Changelog

Changelog
Version Description
1.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.