Advertisement
Guest User

Avoid double encoding in encode_shortcode_contents_callback

a guest
May 8th, 2013
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  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 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement