equal
deleted
inserted
replaced
44 if ( $type & SIMPLEPIE_CONSTRUCT_BASE64 ) { |
44 if ( $type & SIMPLEPIE_CONSTRUCT_BASE64 ) { |
45 $data = base64_decode( $data ); |
45 $data = base64_decode( $data ); |
46 } |
46 } |
47 if ( $type & ( SIMPLEPIE_CONSTRUCT_HTML | SIMPLEPIE_CONSTRUCT_XHTML ) ) { |
47 if ( $type & ( SIMPLEPIE_CONSTRUCT_HTML | SIMPLEPIE_CONSTRUCT_XHTML ) ) { |
48 $data = wp_kses_post( $data ); |
48 $data = wp_kses_post( $data ); |
49 if ( $this->output_encoding !== 'UTF-8' ) { |
49 if ( 'UTF-8' !== $this->output_encoding ) { |
50 $data = $this->registry->call( 'Misc', 'change_encoding', array( $data, 'UTF-8', $this->output_encoding ) ); |
50 $data = $this->registry->call( 'Misc', 'change_encoding', array( $data, 'UTF-8', $this->output_encoding ) ); |
51 } |
51 } |
52 return $data; |
52 return $data; |
53 } else { |
53 } else { |
54 return parent::sanitize( $data, $type, $base ); |
54 return parent::sanitize( $data, $type, $base ); |