Changeset 23685 for trunk/wp-includes/formatting.php
- Timestamp:
- 03/13/2013 03:24:38 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/formatting.php
r23618 r23685 2524 2524 $output = convert_chars($text); 2525 2525 $output = wpautop($output); 2526 $output = htmlspecialchars($output, ENT_NOQUOTES );2526 $output = htmlspecialchars($output, ENT_NOQUOTES, get_option( 'blog_charset' ) ); 2527 2527 2528 2528 return apply_filters('richedit_pre', $output); … … 2542 2542 function wp_htmledit_pre($output) { 2543 2543 if ( !empty($output) ) 2544 $output = htmlspecialchars($output, ENT_NOQUOTES ); // convert only < > &2544 $output = htmlspecialchars($output, ENT_NOQUOTES, get_option( 'blog_charset' ) ); // convert only < > & 2545 2545 2546 2546 return apply_filters('htmledit_pre', $output); … … 2729 2729 */ 2730 2730 function esc_textarea( $text ) { 2731 $safe_text = htmlspecialchars( $text, ENT_QUOTES );2731 $safe_text = htmlspecialchars( $text, ENT_QUOTES, get_option( 'blog_charset' ) ); 2732 2732 return apply_filters( 'esc_textarea', $safe_text, $text ); 2733 2733 }
Note: See TracChangeset
for help on using the changeset viewer.