funky_javascript_fix [ WordPress Function ]
funky_javascript_fix ( $text )
| Parameters: |
|
| Uses: |
|
| Returns: |
|
| Defined at: |
|
Fixes javascript bugs in browsers.
Converts unicode characters to HTML numbered entities.
Source
<?php
function funky_javascript_fix($text) {
_deprecated_function( __FUNCTION__, '3.0' );
// Fixes for browsers' javascript bugs
global $is_macIE, $is_winIE;
if ( $is_winIE || $is_macIE )
$text = preg_replace_callback("/\%u([0-9A-F]{4,4})/",
"funky_javascript_callback",
$text);
return $text;
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- Function Reference/funky javascript fix « WordPress Codex
Description. Fixes javascript bugs in browsers. Converts unicode characters to HTML numbered entities. Usage. <?php funky_javascript_fix( $text ) ?> ...
codex.wordpress.org - WordPress › Support » How to clean post data before inserting in db
$my_post['post_content']= funky_javascript_fix( $my_post['post_content'] ); $ my_post['post_content']= wp_specialchars( stripslashes( $my_post['post_content'] ) ...
wordpress.org - funky_javascript_fix() WordPress function reference, arguments and ...
funky_javascript_fix(). This function had been marked as deprecated. Fixes javascript bugs in browsers. Converts unicode characters to HTML numbered entities ...
queryposts.com - 常用函数-funky_javascript_fix() | WordPress啦!
常用函数-funky_javascript_fix(). 说明. 修正浏览器中的JavaScript错误。 将统一码 字符转换为HTML数值实体。 用法. <?php convert_chars( $content, $deprecated ) ...
www.wordpress.la