funky_javascript_callback( array $matches ): string

In this article

This function has been deprecated.

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

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

Parameters

$matchesarrayrequired
Single Match

Return

string An HTML entity

Source

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

Changelog

VersionDescription
3.0.0This function has been deprecated.
2.8.0Introduced.

User Contributed Notes

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