funky_javascript_callback()WP 2.8.0

Deprecated from version 3.0.0. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

Callback used to change %uXXXX to &#YYY; syntax

Internal function — this function is designed to be used by the kernel itself. It is not recommended to use this function in your code.

No Hooks.

Return

String. An HTML entity

Usage

funky_javascript_callback( $matches );
$matches(array) (required)
Single Match

Changelog

Since 2.8.0 Introduced.
Deprecated since 3.0.0

funky_javascript_callback() code WP 6.5.2

function funky_javascript_callback($matches) {
	return "&#".base_convert($matches[1],16,10).";";
}