wpseek.com
A WordPress-centric search engine for devs and theme authors



funky_javascript_callback › WordPress Function

Since2.8.0
Deprecated3.0.0
funky_javascript_callback ( $matches )
Access:
  • private
Parameters:
  • (array) $matches Single Match
    Required: Yes
Returns:
  • (string) An HTML entity
Defined at:
Codex:

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



Source

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