funky_javascript_callback( array $matches ): string

In this article

This function has been deprecated since 3.0.0.

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only by core. 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.0Deprecated.
2.8.0Introduced.

User Contributed Notes

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