SHARE
TWEET

Avoid double encoding in encode_shortcode_contents_callback

a guest May 8th, 2013 75 Never
  1. 423c423
  2. <               $code = str_replace( array_keys($this->specialchars), array_values($this->specialchars), htmlspecialchars( $code ) );
  3. ---
  4. >                 $code = strtr( htmlspecialchars( $code, ENT_COMPAT | ENT_HTML401, 'UTF-8', false ), $this->specialchars );
RAW Paste Data
Top